Changeset cb8a972 in sasview for sansguiframe/src
- Timestamp:
- Dec 6, 2011 12:07: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:
- 31f3222b
- Parents:
- 001b930
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r2fdb870 rcb8a972 42 42 from sans.dataloader.loader import Loader 43 43 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() 44 DATAPATH = os.getcwd() 58 45 PATH_APP = os.getcwd() 59 46 … … 3041 3028 temp_path = None 3042 3029 try: 3043 _change_current_dir()3044 except:3045 pass3046 try:3047 3030 self.open_file() 3048 3031 except:
Note: See TracChangeset
for help on using the changeset viewer.