Changeset cc37badc in sasview
- Timestamp:
- Mar 6, 2012 10:55:31 AM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- fa00944
- Parents:
- 6fe1e74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/setup_exe.py
r6fe1e74 rcc37badc 36 36 from distutils.filelist import findall 37 37 import matplotlib 38 39 # Solution taken from here: http://www.py2exe.org/index.cgi/win32com.shell 40 # ModuleFinder can't handle runtime changes to __path__, but win32com uses them 41 try: 42 # py2exe 0.6.4 introduced a replacement modulefinder. 43 # This means we have to add package paths there, not to the built-in 44 # one. If this new modulefinder gets integrated into Python, then 45 # we might be able to revert this some day. 46 # if this doesn't work, try import modulefinder 47 try: 48 import py2exe.mf as modulefinder 49 except ImportError: 50 import modulefinder 51 import win32com, sys 52 for p in win32com.__path__[1:]: 53 modulefinder.AddPackagePath("win32com", p) 54 for extra in ["win32com.shell", "win32com.adsi", "win32com.axcontrol", 55 "win32com.axscript", "win32com.bits", "win32com.ifilter", 56 "win32com.internet", "win32com.mapi", "win32com.propsys", 57 "win32com.taskscheduler"]: 58 __import__(extra) 59 m = sys.modules[extra] 60 for p in m.__path__[1:]: 61 modulefinder.AddPackagePath(extra, p) 62 except ImportError: 63 # no build path setup, no worries. 64 pass 65 38 66 import py2exe 39 67 import shutil
Note: See TracChangeset
for help on using the changeset viewer.