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
[legend]
Collaboration diagram for pymake.process.PopenJob:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def run
def notify
def get_callback

Public Attributes

 argv
 executable
 shell
 env
 cwd
 exitcode

Static Public Attributes

 done = False

Detailed Description

A job that executes a command using subprocess.Popen.

Definition at line 141 of file process.py.


Constructor & Destructor Documentation

def pymake.process.PopenJob.__init__ (   self,
  argv,
  executable,
  shell,
  env,
  cwd 
)

Definition at line 145 of file process.py.

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


Member Function Documentation

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

Definition at line 138 of file process.py.

00138 
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,
  condition,
  result 
) [inherited]

Definition at line 131 of file process.py.

00131 
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 process.py.

00153 
00154     def run(self):
00155         try:
00156             p = subprocess.Popen(self.argv, executable=self.executable, shell=self.shell, 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 process.py.

Definition at line 151 of file process.py.

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

Definition at line 126 of file process.py.

Definition at line 150 of file process.py.

Definition at line 148 of file process.py.

Definition at line 129 of file process.py.

Definition at line 149 of file process.py.


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