Changeset cb8a972 in sasview


Ignore:
Timestamp:
Dec 6, 2011 2:07:04 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
31f3222b
Parents:
001b930
Message:

Re #3 remove fragile directory change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r2fdb870 rcb8a972  
    4242from sans.dataloader.loader import Loader 
    4343 
    44 DATAPATH = os.getcwd() 
    45 def _change_current_dir(): 
    46     """ 
    47     Get the path of the current ran file and change the application current 
    48     directory to the directory of that file 
    49     """ 
    50     tem_path = sys.path[0] 
    51     if os.path.isfile(tem_path): 
    52         tem_path = os.path.dirname(tem_path) 
    53      
    54     os.chdir(os.path.abspath(tem_path)) 
    55      
    56      
    57 _change_current_dir()     
     44DATAPATH = os.getcwd()   
    5845PATH_APP = os.getcwd() 
    5946 
     
    30413028        temp_path = None 
    30423029        try: 
    3043             _change_current_dir() 
    3044         except: 
    3045             pass 
    3046         try: 
    30473030            self.open_file() 
    30483031        except: 
Note: See TracChangeset for help on using the changeset viewer.