Changeset 957723f in sasview for guiframe/local_perspectives/data_loader
- Timestamp:
- Mar 25, 2011 10:37:30 AM (14 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:
- 3e943e8
- Parents:
- 68b7d43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/data_loader/data_loader.py
re88ebfd r957723f 17 17 from sans.guiframe.utils import parse_name 18 18 from sans.guiframe.gui_style import GUIFRAME 19 20 EXTENSIONS = ['.svs', '.prv','.fitv', '.inv'] 19 try: 20 # Try to find a local config 21 import imp 22 path = os.getcwd() 23 if(os.path.isfile("%s/%s.py" % (path, 'local_config'))) or \ 24 (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 25 fObj, path, descr = imp.find_module('local_config', [path]) 26 config = imp.load_module('local_config', fObj, path, descr) 27 else: 28 # Try simply importing local_config 29 import local_config as config 30 except: 31 # Didn't find local config, load the default 32 import config 33 34 extension_list = [] 35 if APPLICATION_STATE_EXTENSION is not None: 36 extension_list.append(APPLICATION_STATE_EXTENSION) 37 EXTENSIONS = PLUGIN_STATE_EXTENSIONS + extension_list 21 38 22 39 class Plugin(PluginBase):
Note: See TracChangeset
for help on using the changeset viewer.