![]() |
The Gaudi Framework
v26r3
|


Public Member Functions | |
| def | __init__ |
| def | join (self, args) |
| def | __str__ (self) |
| def | remove (self) |
| def | __enter__ (self) |
| def | __exit__ (self, exc_type, exc_val, exc_tb) |
Public Attributes | |
| chdir | |
| keep | |
| path | |
| old_dir | |
Helper class to create a temporary directory and manage its lifetime. An instance of this class can be used inside the 'with' statement and returns the path to the temporary directory.
Definition at line 69 of file TestEnvOps.py.
| def EnvConfig.TestEnvOps.TemporaryDir.__init__ | ( | self, | |
chdir = False, |
|||
keep = False |
|||
| ) |
| def EnvConfig.TestEnvOps.TemporaryDir.__enter__ | ( | self | ) |
| def EnvConfig.TestEnvOps.TemporaryDir.__exit__ | ( | self, | |
| exc_type, | |||
| exc_val, | |||
| exc_tb | |||
| ) |
Context Manager protocol 'exit' function. Remove the temporary directory and let the exceptions propagate.
Definition at line 106 of file TestEnvOps.py.
| def EnvConfig.TestEnvOps.TemporaryDir.__str__ | ( | self | ) |
String representation (path to the temporary directory).
Definition at line 87 of file TestEnvOps.py.
| def EnvConfig.TestEnvOps.TemporaryDir.join | ( | self, | |
| args | |||
| ) |
| def EnvConfig.TestEnvOps.TemporaryDir.remove | ( | self | ) |
Remove the temporary directory. After a call to this method, the object is not usable anymore.
Definition at line 90 of file TestEnvOps.py.
| EnvConfig.TestEnvOps.TemporaryDir.chdir |
Definition at line 78 of file TestEnvOps.py.
| EnvConfig.TestEnvOps.TemporaryDir.keep |
Definition at line 79 of file TestEnvOps.py.
| EnvConfig.TestEnvOps.TemporaryDir.old_dir |
Definition at line 81 of file TestEnvOps.py.
| EnvConfig.TestEnvOps.TemporaryDir.path |
Definition at line 80 of file TestEnvOps.py.