Changeset 2c068c7 in sasview for sansguiframe/src/sans
- Timestamp:
- Jan 11, 2012 2:26:40 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:
- 9e89e77
- Parents:
- 0efca36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
raa07420 r2c068c7 48 48 def get_app_dir(): 49 49 """ 50 Get the path of the current app (whatever among SansView/PrView/...)51 This is mainly for running app/data file from the command line52 50 """ 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) 51 from sans import sansview 52 return os.path.dirname(sansview.__file__) 57 53 58 54 def get_user_directory():
Note: See TracChangeset
for help on using the changeset viewer.