Changes in sasview/setup_exe.py [8b645cc:f36e01f] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_exe.py

    r8b645cc rf36e01f  
    6262        sys.argv.remove('--extrapath') 
    6363except: 
    64     print "Error processing extra python path needed to build SasView\n  %s" % \ 
    65                 sys.exc_value 
     64    print("Error processing extra python path needed to build SasView\n  %s" % \ 
     65                sys.exc_value) 
    6666 
    6767 
     
    8383        modulefinder.AddPackagePath(win32_folder, p) 
    8484    for extra in ["win32com.shell", "win32com.adsi", "win32com.axcontrol", 
    85                     "win32com.axscript", "win32com.bits", "win32com.ifilter", 
    86                     "win32com.internet", "win32com.mapi", "win32com.propsys", 
    87                     "win32com.taskscheduler"]: 
    88          
    89             __import__(extra) 
    90             m = sys.modules[extra] 
    91             for p in m.__path__[1:]: 
    92                 modulefinder.AddPackagePath(extra, p) 
     85                  "win32com.axscript", "win32com.bits", "win32com.ifilter", 
     86                  "win32com.internet", "win32com.mapi", "win32com.propsys", 
     87                  "win32com.taskscheduler"]: 
     88        __import__(extra) 
     89        m = sys.modules[extra] 
     90        for p in m.__path__[1:]: 
     91            modulefinder.AddPackagePath(extra, p) 
    9392 
    9493except ImportError: 
     
    167166        self.copyright = "copyright 2009 - 2016" 
    168167        self.name = "SasView" 
    169          
     168 
    170169# 
    171170# Adapted from http://www.py2exe.org/index.cgi/MatPlotLib 
     
    236235    data_files.append(('config', [f])) 
    237236f = 'local_config.py' 
     237if os.path.isfile(f): 
     238    data_files.append(('.', [f])) 
     239 
     240f = 'logging.ini' 
    238241if os.path.isfile(f): 
    239242    data_files.append(('.', [f])) 
     
    337340    ]) 
    338341packages.append('periodictable.core') # not found automatically 
    339 #packages.append('IPython') 
     342# packages.append('IPython') 
    340343includes = ['site', 'lxml._elementpath', 'lxml.etree'] 
    341344 
     
    370373    other_resources = [(24, 1, manifest)], 
    371374    dest_base = "SasView" 
    372     ) 
     375) 
    373376 
    374377# bundle_option = 2 
Note: See TracChangeset for help on using the changeset viewer.