◆ _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 103 of file RootMap.py.
105 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 80 of file RootMap.py.
82 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((os.path.join(
56 os.path.dirname(rtmpfile), lib), block))
◆ _procSysRootMap()
def GaudiKernel.RootMap._procSysRootMap |
( |
|
rtmapdict | ) |
|
|
private |
Definition at line 61 of file RootMap.py.
62 if "ROOTSYS" in os.environ:
63 rtmpfile = os.path.join(os.environ[
"ROOTSYS"],
"etc",
"system.rootmap")
65 for line
in open(rtmpfile,
'r'):
70 if entry
not in rtmapdict:
72 rtmapdict[entry].append((os.path.join(
73 os.environ[
"ROOTSYS"],
"lib", lib), block))
77 print(
"WARNING: No ROOTSYS defined!")
◆ checkDict()
def GaudiKernel.RootMap.checkDict |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 159 of file RootMap.py.
163 kys = filter(recomp.search, kys)
166 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
170 print(
"\t%s" % m, end=
' ')
◆ getMaps()
def GaudiKernel.RootMap.getMaps |
( |
|
pathstring = "" , |
|
|
|
sysrtmap = False |
|
) |
| |
Definition at line 87 of file RootMap.py.
87 def getMaps(pathstring="", sysrtmap=False):
94 for f
in filter(_isRootMap, os.listdir(p)):
95 rtmpfile = os.path.join(p, f)
96 if (os.path.exists(rtmpfile)):
◆ printKeys()
def GaudiKernel.RootMap.printKeys |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 146 of file RootMap.py.
150 kys = filter(recomp.search, kys)
153 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
◆ printMaps()
def GaudiKernel.RootMap.printMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 111 of file RootMap.py.
113 frmat =
r"%-" + str(linelen) +
"s\t"
117 kys = filter(recomp.search, kys)
120 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
122 print(frmat % k, end=
' ')
◆ shortPrintMaps()
def GaudiKernel.RootMap.shortPrintMaps |
( |
|
maps, |
|
|
|
recomp = None |
|
) |
| |
Definition at line 129 of file RootMap.py.
133 kys = filter(recomp.search, kys)
136 print(k,
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
141 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)