Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
EnvConfig.TestEnvOps.TempDir Class Reference
Inheritance diagram for EnvConfig.TestEnvOps.TempDir:
Inheritance graph
[legend]
Collaboration diagram for EnvConfig.TestEnvOps.TempDir:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def __del__
 
def __call__
 

Public Attributes

 tmpdir
 

Detailed Description

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

Definition at line 49 of file TestEnvOps.py.

Constructor & Destructor Documentation

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

Definition at line 53 of file TestEnvOps.py.

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

Definition at line 59 of file TestEnvOps.py.

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

Member Function Documentation

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

Definition at line 62 of file TestEnvOps.py.

62 
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)

Member Data Documentation

EnvConfig.TestEnvOps.TempDir.tmpdir

Definition at line 54 of file TestEnvOps.py.


The documentation for this class was generated from the following file:
Generated at Wed Jan 30 2013 17:13:49 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004