Package modules :: Package packages :: Module python
[hide private]
[frames] | no frames]

Source Code for Module modules.packages.python

 1  # Copyright (C) 2010-2015 Cuckoo Foundation. 
 2  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org 
 3  # See the file 'docs/LICENSE' for copying permission. 
 4   
 5  from lib.common.abstracts import Package 
 6   
7 -class Python(Package):
8 """Python analysis package.""" 9 10 PATHS = [ 11 ("HomeDrive", "Python24", "python.exe"), 12 ("HomeDrive", "Python25", "python.exe"), 13 ("HomeDrive", "Python26", "python.exe"), 14 ("HomeDrive", "Python27", "python.exe"), 15 ("HomeDrive", "Python32", "python.exe"), 16 ("HomeDrive", "Python33", "python.exe"), 17 ("HomeDrive", "Python34", "python.exe"), 18 ] 19
20 - def start(self, path):
21 python = self.get_path("Python") 22 arguments = self.options.get("arguments", "") 23 return self.execute(python, "%s %s" % (path, arguments))
24