1
2
3
4
5
6 import shlex
7
8 from lib.common.abstracts import Package
9
11 """Python analysis package."""
12
13 PATHS = [
14 ("HomeDrive", "Python24", "python.exe"),
15 ("HomeDrive", "Python25", "python.exe"),
16 ("HomeDrive", "Python26", "python.exe"),
17 ("HomeDrive", "Python27", "python.exe"),
18 ("HomeDrive", "Python32", "python.exe"),
19 ("HomeDrive", "Python33", "python.exe"),
20 ("HomeDrive", "Python34", "python.exe"),
21 ]
22
24 python = self.get_path("Python")
25 arguments = self.options.get("arguments", "")
26
27 args = [path] + shlex.split(arguments)
28 return self.execute(python, args=args, trigger="file:%s" % path)
29