◆ _getBlock()
def GaudiKernel.RootMap._getBlock |
( |
|
line | ) |
|
|
private |
Definition at line 40 of file RootMap.py.
41 if line.find(
"Begin"):
42 block = line.split()[-1]
◆ _getEntry()
def GaudiKernel.RootMap._getEntry |
( |
|
line | ) |
|
|
private |
Definition at line 29 of file RootMap.py.
32 entry = entry.replace(
"Library.",
"")
33 entry = entry.replace(
":",
"")
34 entry = entry.replace(
"@",
":")
35 entry = entry.replace(
"-",
" ")
◆ _getLongestEntry()
def GaudiKernel.RootMap._getLongestEntry |
( |
|
maps | ) |
|
|
private |
Definition at line 105 of file RootMap.py.
107 for k
in maps.keys():
◆ _getPath()
def GaudiKernel.RootMap._getPath |
( |
|
pathstring = "" | ) |
|
|
private |
Definition at line 18 of file RootMap.py.
21 if sys.platform ==
"linux2":
22 pathstring = os.environ[
"LD_LIBRARY_PATH"]
24 pathstring = os.environ[
"PATH"]
25 pthlist += pathstring.split(os.pathsep)
◆ _isRootMap()
def GaudiKernel.RootMap._isRootMap |
( |
|
filename | ) |
|
|
private |
Definition at line 82 of file RootMap.py.
84 if filename.find(
"rootmap") == 0:
◆ _procRootMap()
def GaudiKernel.RootMap._procRootMap |
( |
|
rtmpfile, |
|
|
|
rtmapdict |
|
) |
| |
|
private |
Definition at line 46 of file RootMap.py.
48 for line
in open(rtmpfile,
"r"):
53 if entry
not in rtmapdict:
55 rtmapdict[entry].append(
56 (os.path.join(os.path.dirname(rtmpfile), lib), block)
◆ _procSysRootMap()
def GaudiKernel.RootMap._procSysRootMap |
( |
|
rtmapdict | ) |
|
|
private |
Definition at line 62 of file RootMap.py.
63 if "ROOTSYS" in os.environ:
64 rtmpfile = os.path.join(os.environ[
"ROOTSYS"],
"etc",
"system.rootmap")
66 for line
in open(rtmpfile,
"r"):
71 if entry
not in rtmapdict:
73 rtmapdict[entry].append(
74 (os.path.join(os.environ[
"ROOTSYS"],
"lib", lib), block)
79 print(
"WARNING: No ROOTSYS defined!")
◆ checkDict()
def GaudiKernel.RootMap.checkDict |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 161 of file RootMap.py.
165 kys = filter(recomp.search, kys)
168 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
172 print(
"\t%s" % m, end=
" ")
◆ getMaps()
def GaudiKernel.RootMap.getMaps |
( |
|
pathstring = "" , |
|
|
|
sysrtmap = False |
|
) |
| |
Definition at line 89 of file RootMap.py.
89 def getMaps(pathstring="", sysrtmap=False):
96 for f
in filter(_isRootMap, os.listdir(p)):
97 rtmpfile = os.path.join(p, f)
98 if os.path.exists(rtmpfile):
◆ printKeys()
def GaudiKernel.RootMap.printKeys |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 148 of file RootMap.py.
152 kys = filter(recomp.search, kys)
155 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
◆ printMaps()
def GaudiKernel.RootMap.printMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 113 of file RootMap.py.
115 frmat =
r"%-" + str(linelen) +
"s\t"
119 kys = filter(recomp.search, kys)
122 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
124 print(frmat % k, end=
" ")
◆ shortPrintMaps()
def GaudiKernel.RootMap.shortPrintMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 131 of file RootMap.py.
135 kys = filter(recomp.search, kys)
138 print(k,
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
143 print(
"\t%s" % m, end=
" ")
def _procRootMap(rtmpfile, rtmapdict)
def _procSysRootMap(rtmapdict)
def shortPrintMaps(maps, recomp=None)
def printKeys(maps, recomp=None)
def checkDict(maps, recomp=None)
def getMaps(pathstring="", sysrtmap=False)
def _getPath(pathstring="")
def _getLongestEntry(maps)
def printMaps(maps, recomp=None)