Definition at line 17 of file _db.py.
◆ __init__()
def GaudiConfig2._db.ConfDB2.__init__ |
( |
|
self | ) |
|
Definition at line 18 of file _db.py.
22 pathvar =
"DYLD_LIBRARY_PATH" if sys.platform ==
"darwin" else "LD_LIBRARY_PATH"
23 for path
in os.getenv(pathvar,
"").split(os.pathsep):
24 if not os.path.isdir(path):
28 for f
in os.listdir(path)
29 if f.endswith(
".confdb2")
and os.path.isfile(os.path.join(path, f))
32 for db
in [shelve.open(f,
"r")
for f
in dbfiles]:
34 if key
not in self._dbs:
◆ __contains__()
def GaudiConfig2._db.ConfDB2.__contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 40 of file _db.py.
40 def __contains__(self, key):
41 return key
in self._dbs
◆ __getitem__()
def GaudiConfig2._db.ConfDB2.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 37 of file _db.py.
38 return self._dbs[key][key]
◆ __iter__()
def GaudiConfig2._db.ConfDB2.__iter__ |
( |
|
self | ) |
|
Definition at line 43 of file _db.py.
44 return iter(self._dbs)
◆ _dbs
GaudiConfig2._db.ConfDB2._dbs |
|
private |
The documentation for this class was generated from the following file:
- GaudiConfiguration/python/GaudiConfig2/_db.py