Changeset d72ef56 in sasview for sansguiframe


Ignore:
Timestamp:
Sep 5, 2011 10:32:04 PM (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:
edcb00bd
Parents:
c994f8f
Message:

can save default open/save folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/data_loader/data_loader.py

    rc642155 rd72ef56  
    1717from sans.guiframe.utils import parse_name 
    1818from sans.guiframe.gui_style import GUIFRAME 
     19from sans.guiframe.gui_manager import DEFAULT_OPEN_FOLDER 
    1920try: 
    2021    # Try to find a local config 
     
    3132    # Didn't find local config, load the default  
    3233    import config 
    33   
     34 
     35        
    3436extension_list = [] 
    3537if config.APPLICATION_STATE_EXTENSION is not None: 
     
    3941APPLICATION_WLIST = config.APPLICATION_WLIST 
    4042 
    41  
    4243class Plugin(PluginBase): 
    4344     
     
    4546        PluginBase.__init__(self, name="DataLoader", standalone=standalone) 
    4647        #Default location 
    47         self._default_save_location = None   
     48        self._default_save_location = DEFAULT_OPEN_FOLDER 
    4849        self.loader = Loader()   
    4950        self._data_menu = None  
     
    106107        if path is None or not file_list or file_list[0] is None: 
    107108            return 
     109        self.parent._default_save_location = self._default_save_location 
    108110        self.get_data(file_list) 
    109111         
     
    136138        file_list = self.get_file_path(path) 
    137139        self.get_data(file_list) 
     140        self.parent._default_save_location = self._default_save_location 
    138141         
    139142    def load_error(self, error=None): 
Note: See TracChangeset for help on using the changeset viewer.