Changeset c329f4d in sasview for sansguiframe/src
- Timestamp:
- Aug 20, 2012 6:54:46 PM (12 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:
- a338547
- Parents:
- 5401f2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r96277b9 rc329f4d 60 60 return os.path.abspath(os.getcwd()) 61 61 62 # Finally, try the directory of the sa nsview module63 #TODO: gui_manager will have to know about sa nsview until we62 # Finally, try the directory of the sasview module 63 #TODO: gui_manager will have to know about sasview until we 64 64 # clean all these module variables and put them into a config class 65 # that can be passed by sa nsview.py.65 # that can be passed by sasview.py. 66 66 logging.info(sys.executable) 67 67 logging.info(str(sys.argv)) 68 from sans import sansview 69 app_path = os.path.dirname(sa nsview.__file__)68 from sans import sansview as sasview 69 app_path = os.path.dirname(sasview.__file__) 70 70 logging.info("Using application path: %s", app_path) 71 71 return app_path … … 75 75 Returns the user's home directory 76 76 """ 77 userdir = os.path.join(os.path.expanduser("~"),".sa nsview")77 userdir = os.path.join(os.path.expanduser("~"),".sasview") 78 78 if not os.path.isdir(userdir): 79 79 os.makedirs(userdir) … … 2104 2104 def _on_save_project(self, event): 2105 2105 """ 2106 save the state of the Sa nsView as *.svs2106 save the state of the SasView as *.svs 2107 2107 """ 2108 2108 if self._current_perspective is None: … … 2112 2112 extension = '*' + APPLICATION_STATE_EXTENSION 2113 2113 dlg = wx.FileDialog(self, "Save Project file", 2114 self._default_save_location, "sa nsview_proj",2114 self._default_save_location, "sasview_proj", 2115 2115 extension, 2116 2116 wx.SAVE) … … 2843 2843 self._data_panel.set_active_perspective(name) 2844 2844 self._check_applications_menu() 2845 #Set the Sa nsView title2845 #Set the SasView title 2846 2846 self._set_title_name(name) 2847 2847 … … 2849 2849 def _set_title_name(self, name): 2850 2850 """ 2851 Set the Sa nsView title w/ the current application name2851 Set the SasView title w/ the current application name 2852 2852 2853 2853 : param name: application name [string]
Note: See TracChangeset
for help on using the changeset viewer.