21 if sys.platform ==
"linux2":
22 pathstring = os.environ[
"LD_LIBRARY_PATH"]
24 pathstring = os.environ[
"PATH"]
25 pthlist += pathstring.split(os.pathsep)
32 entry = entry.replace(
"Library.",
"")
33 entry = entry.replace(
":",
"")
34 entry = entry.replace(
"@",
":")
35 entry = entry.replace(
"-",
" ")
41 if line.find(
"Begin"):
42 block = line.split()[-1]
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)
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!")
84 if filename.find(
"rootmap") == 0:
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):
107 for k
in maps.keys():
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=
" ")
135 kys = filter(recomp.search, kys)
138 print(k,
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
143 print(
"\t%s" % m, end=
" ")
152 kys = filter(recomp.search, kys)
155 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
165 kys = filter(recomp.search, kys)
168 print(
"!!!!!!!!!!!! WARNING - More than one entry !!!!!!!!!!")
172 print(
"\t%s" % m, end=
" ")