Changeset 53fc7636 in sasview


Ignore:
Timestamp:
May 2, 2011 4:52:50 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:
08e1912
Parents:
d9638fd
Message:

trying to fix model help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r670d77a r53fc7636  
    1616import sys 
    1717import xml 
    18  
     18if sys.platform.count("darwin")==0: 
     19    ON_MAC = False 
     20else: 
     21    ON_MAC = True 
    1922try: 
    2023    # Try to find a local config 
     
    22012204        self.s_screen = None 
    22022205        try: 
    2203             # make sure the current dir is App dir when it starts 
    2204             temp_path = os.path.dirname(os.path.sys.path[0])   
    2205             os.chdir(temp_path) 
     2206            if not ON_MAC: 
     2207                # make sure the current dir is App dir when it starts 
     2208                temp_path = os.path.dirname(os.path.sys.path[0])   
     2209                os.chdir(temp_path) 
    22062210        except: 
    22072211            pass 
Note: See TracChangeset for help on using the changeset viewer.