10 if sys.platform ==
"linux2":
11 pathstring = os.environ[
"LD_LIBRARY_PATH"]
13 pathstring = os.environ[
"PATH"]
14 pthlist += pathstring.split(os.pathsep)
21 entry = entry.replace(
"Library.",
"")
22 entry = entry.replace(
":",
"")
23 entry = entry.replace(
"@",
":")
24 entry = entry.replace(
"-",
" ")
30 if line.find(
"Begin"):
31 block = line.split()[-1]
37 for line
in open(rtmpfile,
'r'): 42 if not rtmapdict.has_key(entry):
44 rtmapdict[entry].append(
45 (os.path.join(os.path.dirname(rtmpfile), lib), block))
51 if os.environ.has_key(
"ROOTSYS"):
52 rtmpfile = os.path.join(os.environ[
"ROOTSYS"],
"etc",
"system.rootmap")
54 for line
in open(rtmpfile,
'r'): 59 if not rtmapdict.has_key(entry):
61 rtmapdict[entry].append(
62 (os.path.join(os.environ[
"ROOTSYS"],
"lib", lib), block))
66 print "WARNING: No ROOTSYS defined!" 71 if (filename.find(
"rootmap") == 0):
76 def getMaps(pathstring="", sysrtmap=False):
83 for f
in filter(_isRootMap, os.listdir(p)):
84 rtmpfile = os.path.join(p, f)
85 if (os.path.exists(rtmpfile)):
102 frmat =
r"%-" + str(linelen) +
"s\t" 106 kys = filter(recomp.search, kys)
109 print "!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!" 122 kys = filter(recomp.search, kys)
125 print k,
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!" 139 kys = filter(recomp.search, kys)
142 print "!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!" 152 kys = filter(recomp.search, kys)
155 print "!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!" def checkDict(maps, recomp=None)
def shortPrintMaps(maps, recomp=None)
def _getPath(pathstring="")
def getMaps(pathstring="", sysrtmap=False)
def _getLongestEntry(maps)
def printKeys(maps, recomp=None)
def _procRootMap(rtmpfile, rtmapdict)
def _procSysRootMap(rtmapdict)
def printMaps(maps, recomp=None)