2 __date__ =
"$2010-08-13 14.28.08$"
7 from os.path
import join, split
11 if sys.platform[:3] ==
'win':
20 picFiles = glob.glob(
join(directory,
"cmsCodeRule*.dat"))
24 head, fileName =
split(file)
25 ruleName = fileName[11:-4]
26 rulesNames.append(ruleName)
29 ruleResult = pickle.load(file)
33 rulesResults[ruleName] = ruleResult
43 if not ruleResult:
return info
45 ruleResult = ruleResult.items()
47 file, lines = ruleResult.pop(0)
49 package = slash.join(pathList[:2])
50 packageResult.append((slash.join(pathList[2:]), lines))
52 for file, lines
in ruleResult:
54 head = slash.join(pathList[:2])
55 tail = slash.join(pathList[2:])
57 packageResult.append((tail, lines))
59 info.append((package, packageResult))
62 packageResult.append((tail, lines))
63 info.append((package, packageResult))
68 head, tail =
split(path)
72 head, tail =
split(head)
static std::string join(char **cmd)