Changeset e912a58 in sasview for src/sas/sasgui/guiframe/local_perspectives/data_loader
- Timestamp:
- Aug 30, 2017 1:15:48 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:
- 7152c82
- Parents:
- 25a42f99 (diff), b54440d (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
rdcb91cf r759a8ab 12 12 from sas.sascalc.dataloader.loader import Loader 13 13 from sas.sascalc.dataloader.loader_exceptions import NoKnownLoaderException 14 15 from sas.sasgui import get_local_config 14 16 from sas.sasgui.guiframe.plugin_base import PluginBase 15 17 from sas.sasgui.guiframe.events import StatusEvent 16 18 from sas.sasgui.guiframe.gui_style import GUIFRAME 17 19 from sas.sasgui.guiframe.gui_manager import DEFAULT_OPEN_FOLDER 18 try: 19 # Try to find a local config 20 import imp 21 path = os.getcwd() 22 if(os.path.isfile("%s/%s.py" % (path, 'local_config'))) or \ 23 (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 24 fObj, path, descr = imp.find_module('local_config', [path]) 25 config = imp.load_module('local_config', fObj, path, descr) 26 else: 27 # Try simply importing local_config 28 import local_config as config 29 except: 30 # Didn't find local config, load the default 31 import sas.sasgui.guiframe.config as config 32 33 if config is None: 34 import sas.sasgui.guiframe.config as config 35 36 20 21 config = get_local_config() 37 22 extension_list = [] 38 23 if config.APPLICATION_STATE_EXTENSION is not None:
Note: See TracChangeset
for help on using the changeset viewer.