VirtualBox

Changeset 20579 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jun 15, 2009 9:16:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48588
Message:

Python: attempt to allow .run installer work with multiple Python versions on Linux, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r20445 r20579  
    3030os.environ["VBOX_SDK_PATH"] = VboxSdkDir
    3131sys.path.append(VboxBinDir)
    32 # This directory's content goes to the site-wide directory
    33 #sys.path.append(VboxSdkDir+"/bindings/glue/python")
    3432
    3533from VirtualBox_constants import VirtualBoxReflectionInfo
    3634
    3735class PlatformMSCOM:
     36    # Class to fake access to constants in style of foo.bar.boo
    3837    class ConstantFake:
    3938        def __init__(self, parent, name):
     
    7271               else:
    7372                  name = attr
    74                print "ask",name
    7573               return win32com.client.constants.__getattr__(name)
    7674            except AttributeError,e:
     
    9593
    9694    def __init__(self, params):
    97             sys.path.append(VboxSdkDir+'/bindings/mscom/python/')
    9895            from win32com import universal
    9996            from win32com.client import gencache, DispatchWithEvents, Dispatch
     
    103100            import win32api
    104101            self.constants = PlatformMSCOM.InterfacesWrapper()
    105             #win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
    106             #win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBox')
    107102
    108103    def getSessionObject(self, vbox):
     
    192187        str += "   def __init__(self): pass\n"
    193188        str += "result = "+iface+"Impl()\n"
    194         #print str
    195189        exec (str,d,d)
    196190        return d['result']
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette