◆ _getBlock()
def GaudiKernel.RootMap._getBlock |
( |
|
line | ) |
|
|
private |
Definition at line 41 of file RootMap.py.
42 if line.find(
"Begin"):
43 block = line.split()[-1]
◆ _getEntry()
def GaudiKernel.RootMap._getEntry |
( |
|
line | ) |
|
|
private |
Definition at line 30 of file RootMap.py.
33 entry = entry.replace(
"Library.",
"")
34 entry = entry.replace(
":",
"")
35 entry = entry.replace(
"@",
":")
36 entry = entry.replace(
"-",
" ")
◆ _getLongestEntry()
def GaudiKernel.RootMap._getLongestEntry |
( |
|
maps | ) |
|
|
private |
Definition at line 106 of file RootMap.py.
108 for k
in maps.keys():
◆ _getPath()
def GaudiKernel.RootMap._getPath |
( |
|
pathstring = "" | ) |
|
|
private |
Definition at line 19 of file RootMap.py.
22 if sys.platform ==
"linux2":
23 pathstring = os.environ[
"LD_LIBRARY_PATH"]
25 pathstring = os.environ[
"PATH"]
26 pthlist += pathstring.split(os.pathsep)
◆ _isRootMap()
def GaudiKernel.RootMap._isRootMap |
( |
|
filename | ) |
|
|
private |
Definition at line 83 of file RootMap.py.
85 if filename.find(
"rootmap") == 0:
◆ _procRootMap()
def GaudiKernel.RootMap._procRootMap |
( |
|
rtmpfile, |
|
|
|
rtmapdict |
|
) |
| |
|
private |
Definition at line 47 of file RootMap.py.
49 for line
in open(rtmpfile,
"r"):
54 if entry
not in rtmapdict:
56 rtmapdict[entry].append(
57 (os.path.join(os.path.dirname(rtmpfile), lib), block)
◆ _procSysRootMap()
def GaudiKernel.RootMap._procSysRootMap |
( |
|
rtmapdict | ) |
|
|
private |
Definition at line 63 of file RootMap.py.
64 if "ROOTSYS" in os.environ:
65 rtmpfile = os.path.join(os.environ[
"ROOTSYS"],
"etc",
"system.rootmap")
67 for line
in open(rtmpfile,
"r"):
72 if entry
not in rtmapdict:
74 rtmapdict[entry].append(
75 (os.path.join(os.environ[
"ROOTSYS"],
"lib", lib), block)
80 print(
"WARNING: No ROOTSYS defined!")
◆ checkDict()
def GaudiKernel.RootMap.checkDict |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 162 of file RootMap.py.
166 kys = filter(recomp.search, kys)
169 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
173 print(
"\t%s" % m, end=
" ")
◆ getMaps()
def GaudiKernel.RootMap.getMaps |
( |
|
pathstring = "" , |
|
|
|
sysrtmap = False |
|
) |
| |
Definition at line 90 of file RootMap.py.
90 def getMaps(pathstring="", sysrtmap=False):
97 for f
in filter(_isRootMap, os.listdir(p)):
98 rtmpfile = os.path.join(p, f)
99 if os.path.exists(rtmpfile):
◆ printKeys()
def GaudiKernel.RootMap.printKeys |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 149 of file RootMap.py.
153 kys = filter(recomp.search, kys)
156 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
◆ printMaps()
def GaudiKernel.RootMap.printMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 114 of file RootMap.py.
116 frmat =
r"%-" + str(linelen) +
"s\t"
120 kys = filter(recomp.search, kys)
123 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
125 print(frmat % k, end=
" ")
◆ shortPrintMaps()
def GaudiKernel.RootMap.shortPrintMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 132 of file RootMap.py.
136 kys = filter(recomp.search, kys)
139 print(k,
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
144 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)