Changeset aa07420 in sasview for sansguiframe/src
- Timestamp:
- Jan 11, 2012 1:10:56 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:
- 992b594
- Parents:
- cda697a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
rcda697a raa07420 48 48 def get_app_dir(): 49 49 """ 50 Return sansview dir until we clean up the gui_manager configuration. 51 There should be a proper config class so that we don't need all 52 the complexity currently used to figure out where things are. 50 Get the path of the current app (whatever among SansView/PrView/...) 51 This is mainly for running app/data file from the command line 53 52 """ 54 from sans import sansview 55 return os.path.dirname(sansview.__file__) 53 tem_path = sys.path[0] 54 if os.path.isfile(tem_path): 55 tem_path = os.path.dirname(tem_path) 56 return os.path.abspath(tem_path) 56 57 57 58 def get_user_directory():
Note: See TracChangeset
for help on using the changeset viewer.