Changeset 6468fb2 in sasview for sansguiframe


Ignore:
Timestamp:
Aug 19, 2011 10:12:56 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
83e503c
Parents:
cd5f42d
Message:

data_panel: fixed clean build bug, importing local_config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    rc642155 r6468fb2  
    3838from sans.dataloader.loader import Loader 
    3939 
    40 try: 
    41     # Try to find a local config 
    42     import imp 
    43     path = os.getcwd() 
    44     if(os.path.isfile("%s/%s.py" % (path, 'local_config'))) or \ 
    45         (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 
    46         fObj, path, descr = imp.find_module('local_config', [path]) 
    47         config = imp.load_module('local_config', fObj, path, descr)   
    48     else: 
    49         # Try simply importing local_config 
    50         import local_config as config 
    51 except: 
    52     # Didn't find local config, load the default  
    53     import config 
     40import sans.guiframe.config as config 
    5441  
    5542extension_list = [] 
Note: See TracChangeset for help on using the changeset viewer.