Changeset 5376e03 in sasview


Ignore:
Timestamp:
Dec 15, 2011 1:10:34 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:
2637a31
Parents:
bfcae3c
Message:

Re #3 modify local_config to find resources regardless of where sansview runs

Files:
3 edited

Legend:

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

    rbfcae3c r5376e03  
    20462046        Pop up message to make sure the user wants to quit the application 
    20472047        """ 
    2048         message = "\nDo you really want to exit this application?        \n\n" 
    2049         dial = wx.MessageDialog(self, message, 'Confirm Exit', 
    2050                            wx.YES_NO|wx.YES_DEFAULT|wx.ICON_QUESTION) 
    2051         if dial.ShowModal() == wx.ID_YES: 
    2052             return True 
    2053         else: 
    2054             return False     
     2048        return True 
     2049        #message = "\nDo you really want to exit this application?        \n\n" 
     2050        #dial = wx.MessageDialog(self, message, 'Confirm Exit', 
     2051        #                   wx.YES_NO|wx.YES_DEFAULT|wx.ICON_QUESTION) 
     2052        #if dial.ShowModal() == wx.ID_YES: 
     2053        #    return True 
     2054        #else: 
     2055        #    return False     
    20552056         
    20562057    def Close(self, event=None): 
  • sansview/local_config.py

    r2d74016 r5376e03  
    3939 
    4040 
    41 icon_path = "images" 
    42 media_path = "media" 
    43 test_path =  "test" 
     41icon_path = os.path.join(os.path.dirname(__file__), "images") 
     42media_path = os.path.join(os.path.dirname(__file__), "media") 
     43test_path =  os.path.join(os.path.dirname(__file__), "test") 
    4444 
    4545_nsf_logo = os.path.join(icon_path, "nsf_logo.png") 
  • sansview/sansview.py

    rca6481c r5376e03  
    2727import local_config 
    2828import logging 
    29  
    30 def run_old(): 
    31     """ 
    32         Run function for linux/OSX installations 
    33     """ 
    34     module_path,_ = os.path.split(__file__) 
    35     os.system("cd %s;python sansview.py" % module_path) 
    3629 
    3730def run(): 
Note: See TracChangeset for help on using the changeset viewer.