| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:
[legend]
Collaboration diagram for EnvConfig.TestEnvOps.TempDir:
[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 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
55 def __init__(self, files=None):
56 self.tmpdir = mkdtemp()
57 if files is None:
58 files = {}
59 buildDir(files, self.tmpdir)

def EnvConfig.TestEnvOps.TempDir.__del__ | ( |  | self | ) |

Definition at line 60 of file TestEnvOps.py.

60
61 def __del__(self):
62 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 63 of file TestEnvOps.py.

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

## 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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/cmake/EnvConfig/TestEnvOps.py