Changeset 2c068c7 in sasview


Ignore:
Timestamp:
Jan 11, 2012 2:26:40 PM (12 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:
9e89e77
Parents:
0efca36
Message:

remove sys.path[0] again because it breaks linux installation

File:
1 edited

Legend:

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

    raa07420 r2c068c7  
    4848def get_app_dir(): 
    4949    """ 
    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 
    5250    """ 
    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__) 
    5753 
    5854def get_user_directory(): 
Note: See TracChangeset for help on using the changeset viewer.