EnvConfig.TestEnvOps.TempDir Class Reference
Inheritance diagram for EnvConfig.TestEnvOps.TempDir:
Collaboration diagram for EnvConfig.TestEnvOps.TempDir:

Public Member Functions

def __init__
 
def __del__ (self)
 
def __call__ (self, args)
 

Public Attributes

 tmpdir
 

Detailed Description

Class for easy creation, use and removal of temporary directory structures.

Definition at line 50 of file TestEnvOps.py.

Constructor & Destructor Documentation

def EnvConfig.TestEnvOps.TempDir.__init__ (   self,
  files = None 
)

Definition at line 54 of file TestEnvOps.py.

54  def __init__(self, files=None):
55  self.tmpdir = mkdtemp()
56  if files is None:
57  files = {}
58  buildDir(files, self.tmpdir)
59 
def EnvConfig.TestEnvOps.TempDir.__del__ (   self)

Definition at line 60 of file TestEnvOps.py.

60  def __del__(self):
61  shutil.rmtree(self.tmpdir, ignore_errors=False)
62 

Member Function Documentation

def EnvConfig.TestEnvOps.TempDir.__call__ (   self,
  args 
)
Return the absolute path to a file in the temporary directory.

Definition at line 63 of file TestEnvOps.py.

63  def __call__(self, *args):
64  '''
65  Return the absolute path to a file in the temporary directory.
66  '''
67  return os.path.join(self.tmpdir, *args)
68 
def __call__(self, args)
Definition: TestEnvOps.py:63

Member Data Documentation

EnvConfig.TestEnvOps.TempDir.tmpdir

Definition at line 55 of file TestEnvOps.py.


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