Changeset db6ce6c in sasview


Ignore:
Timestamp:
Apr 26, 2011 4:27:33 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
5683f47
Parents:
3190b7c
Message:

fixed path problem when application starts w/ a data/svs file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r1793cef rdb6ce6c  
    21792179                                 size=size)  
    21802180        self.s_screen = None 
     2181        try: 
     2182            # make sure the current dir is App dir when it starts 
     2183            temp_path = os.path.dirname(os.path.sys.path[0])   
     2184            os.chdir(temp_path) 
     2185        except: 
     2186            pass 
    21812187        # Display a splash screen on top of the frame. 
    21822188        if len(sys.argv) > 1 and '--time' in sys.argv[1:]: 
Note: See TracChangeset for help on using the changeset viewer.