Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Public Attributes
pymake.process.PopenJob Class Reference
Inheritance diagram for pymake.process.PopenJob:
Inheritance graph
Collaboration diagram for pymake.process.PopenJob:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def run
def notify
def get_callback

Public Attributes


Static Public Attributes

 done = False

Detailed Description

A job that executes a command using subprocess.Popen.

Definition at line 141 of file

Constructor & Destructor Documentation

def pymake.process.PopenJob.__init__ (   self,

Definition at line 145 of file

00146     def __init__(self, argv, executable, shell, env, cwd):
00147         Job.__init__(self)
00148         self.argv = argv
00149         self.executable = executable
00150 = shell
00151         self.env = env
00152         self.cwd = cwd

Member Function Documentation

def pymake.process.Job.get_callback (   self,
) [inherited]

Definition at line 138 of file

00139     def get_callback(self, condition):
00140         return lambda result: self.notify(condition, result)

Here is the call graph for this function:

def pymake.process.Job.notify (   self,
) [inherited]

Definition at line 131 of file

00132     def notify(self, condition, result):
00133         condition.acquire()
00134         self.done = True
00135         self.exitcode = result
00136         condition.notify()
00137         condition.release()

Here is the caller graph for this function:

Definition at line 153 of file

00154     def run(self):
00155         try:
00156             p = subprocess.Popen(self.argv, executable=self.executable,, env=self.env, cwd=self.cwd)
00157             return p.wait()
00158         except OSError, e:
00159             print >>sys.stderr, e
00160             return -127

Member Data Documentation

Definition at line 147 of file

Definition at line 151 of file

pymake.process.Job.done = False [static, inherited]

Definition at line 126 of file

Definition at line 150 of file

Definition at line 148 of file

Definition at line 129 of file

Definition at line 149 of file

The documentation for this class was generated from the following file: