|
Gaudi Framework, version v21r11 |
| Home | Generated: 30 Sep 2010 |
Public Member Functions | |
| def | __init__ |
| def | __str__ |
| def | __del__ |
| def | __getattr__ |
Public Attributes | |
| name | |
Private Attributes | |
| _keep | |
| _origdir | |
Small class for temporary directories. When instantiated, it creates a temporary directory and the instance behaves as the string containing the directory name. When the instance goes out of scope, it removes all the content of the temporary directory (automatic clean-up).
Definition at line 155 of file GaudiTest.py.
| def GaudiTest::TempDir::__init__ | ( | self, | ||
keep = False, |
||||
chdir = False | ||||
| ) |
| def GaudiTest::TempDir::__str__ | ( | self | ) |
| def GaudiTest::TempDir::__del__ | ( | self | ) |
Definition at line 173 of file GaudiTest.py.
00173 : 00174 if self._origdir: 00175 os.chdir(self._origdir) 00176 if self.name and not self._keep: 00177 shutil.rmtree(self.name) 00178 def __getattr__(self,attr):
| def GaudiTest::TempDir::__getattr__ | ( | self, | ||
| attr | ||||
| ) |
Definition at line 163 of file GaudiTest.py.
GaudiTest::TempDir::_keep [private] |
Definition at line 164 of file GaudiTest.py.
GaudiTest::TempDir::_origdir [private] |
Definition at line 165 of file GaudiTest.py.