Changeset de995e5b in sasview for src/sas/sasgui/guiframe/local_perspectives
- Timestamp:
- Jun 19, 2017 5:38:08 PM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 6b7d3c2
- Parents:
- 7df0ccd (diff), bc04647 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py
r235f514 r914ba0a 11 11 12 12 from sas.sascalc.dataloader.loader import Loader 13 14 from sas.sasgui import get_local_config 13 15 from sas.sasgui.guiframe.plugin_base import PluginBase 14 16 from sas.sasgui.guiframe.events import StatusEvent 15 17 from sas.sasgui.guiframe.gui_style import GUIFRAME 16 18 from sas.sasgui.guiframe.gui_manager import DEFAULT_OPEN_FOLDER 17 try: 18 # Try to find a local config 19 import imp 20 path = os.getcwd() 21 if(os.path.isfile("%s/%s.py" % (path, 'local_config'))) or \ 22 (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 23 fObj, path, descr = imp.find_module('local_config', [path]) 24 config = imp.load_module('local_config', fObj, path, descr) 25 else: 26 # Try simply importing local_config 27 import local_config as config 28 except: 29 # Didn't find local config, load the default 30 import sas.sasgui.guiframe.config as config 31 32 if config is None: 33 import sas.sasgui.guiframe.config as config 34 35 19 20 config = get_local_config() 36 21 extension_list = [] 37 22 if config.APPLICATION_STATE_EXTENSION is not None:
Note: See TracChangeset
for help on using the changeset viewer.