Changeset d72ef56 in sasview for sansguiframe/src/sans/guiframe/local_perspectives/data_loader/data_loader.py
- Timestamp:
- Sep 5, 2011 10:32:04 PM (13 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:
- edcb00bd
- Parents:
- c994f8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/data_loader/data_loader.py
rc642155 rd72ef56 17 17 from sans.guiframe.utils import parse_name 18 18 from sans.guiframe.gui_style import GUIFRAME 19 from sans.guiframe.gui_manager import DEFAULT_OPEN_FOLDER 19 20 try: 20 21 # Try to find a local config … … 31 32 # Didn't find local config, load the default 32 33 import config 33 34 35 34 36 extension_list = [] 35 37 if config.APPLICATION_STATE_EXTENSION is not None: … … 39 41 APPLICATION_WLIST = config.APPLICATION_WLIST 40 42 41 42 43 class Plugin(PluginBase): 43 44 … … 45 46 PluginBase.__init__(self, name="DataLoader", standalone=standalone) 46 47 #Default location 47 self._default_save_location = None48 self._default_save_location = DEFAULT_OPEN_FOLDER 48 49 self.loader = Loader() 49 50 self._data_menu = None … … 106 107 if path is None or not file_list or file_list[0] is None: 107 108 return 109 self.parent._default_save_location = self._default_save_location 108 110 self.get_data(file_list) 109 111 … … 136 138 file_list = self.get_file_path(path) 137 139 self.get_data(file_list) 140 self.parent._default_save_location = self._default_save_location 138 141 139 142 def load_error(self, error=None):
Note: See TracChangeset
for help on using the changeset viewer.