Changeset 1eae432 in sasview
- Timestamp:
- Dec 22, 2011 7:11:45 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:
- e9f6979
- Parents:
- e615a0d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r493c90c r1eae432 45 45 PATH_APP = os.path.dirname(sansview.__file__) 46 46 DATAPATH = PATH_APP 47 48 def _change_current_dir(): 49 """ 50 Get the path of the current file 51 This is for openning sansview/data file from command line 52 """ 53 tem_path = sys.path[0] 54 if os.path.isfile(tem_path): 55 tem_path = os.path.dirname(tem_path) 56 57 os.chdir(os.path.abspath(tem_path)) 58 _change_current_dir() 47 59 48 60 def get_user_directory(): … … 3022 3034 temp_path = None 3023 3035 try: 3036 _change_current_dir() 3037 except: 3038 pass 3039 try: 3024 3040 self.open_file() 3025 3041 except:
Note: See TracChangeset
for help on using the changeset viewer.