VirtualBox

Changeset 33432 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2010 3:12:09 PM (14 years ago)
Author:
vboxsync
Message:

Python: cleanup COM cache in installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/common/vboxapisetup.py

    r28800 r33432  
    1212import os,sys
    1313from distutils.core import setup
     14
     15def cleanupComCache():
     16    import shutil
     17    from distutils.sysconfig import get_python_lib
     18    comCache = os.path.join(get_python_lib(),'win32com', 'gen_py')
     19    print "Cleaning COM cache at",comCache
     20    shutil.rmtree(comCache, True)
    1421
    1522def patchWith(file,install,sdk):
     
    5057    else:
    5158        vboxSdkDest = os.path.join(vboxDest, "sdk")
     59    if platform.system() == 'Windows':
     60        cleanupComCache()
    5261    patchWith(os.path.join(os.path.dirname(sys.argv[0]), 'vboxapi', '__init__.py'), vboxDest, vboxSdkDest)
    5362    setup(name='vboxapi',
Note: See TracChangeset for help on using the changeset viewer.

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