OpenSecurity/bin/vmmanager.py
changeset 22 ff138e89aa4d
parent 19 3111f077646d
child 26 0b784719a211
     1.1 --- a/OpenSecurity/bin/vmmanager.py	Fri Dec 06 12:52:34 2013 +0100
     1.2 +++ b/OpenSecurity/bin/vmmanager.py	Fri Dec 06 14:24:42 2013 +0100
     1.3 @@ -43,9 +43,9 @@
     1.4      vboxManage = 'VBoxManage'
     1.5      
     1.6      def __init__(self):
     1.7 +        self.cygwin_path = Cygwin.root()
     1.8 +        self.vboxManage = os.path.join(self.getVBoxManagePath(), 'VBoxManage')
     1.9          self.systemProperties = self.getSystemProperties()
    1.10 -        self.cygwin_path = Cygwin.root()
    1.11 -        self.vboxManage = os.path.join(getVBoxManagePath, 'VBoxManage')
    1.12          return
    1.13           
    1.14      def execute(self, cmd):
    1.15 @@ -77,7 +77,7 @@
    1.16      
    1.17      # return hosty system properties
    1.18      def getSystemProperties(self):
    1.19 -        cmd = 'VBoxManage list systemproperties'
    1.20 +        cmd = self.vboxManage + ' list systemproperties'
    1.21          result = self.execute(cmd)
    1.22          if result[1]=='':
    1.23              return None