- Timestamp:
- Sep 17, 2012 5:11:50 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:
- b71a53b
- Parents:
- cf7653d3
- Location:
- sansview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/sansview.py
r10b3e1e rdf7a7e3 11 11 import os 12 12 import logging 13 from shutil import copy 13 14 logging.basicConfig(level=logging.INFO, 14 15 format='%(asctime)s %(levelname)s %(message)s', … … 67 68 fitting_plug = module.Plugin() 68 69 self.gui.add_perspective(fitting_plug) 69 except: 70 except Exception as inst: 71 logging.error("Fitting problems: " + str(inst)) 70 72 logging.error("%s: could not find Fitting plug-in module"% APP_NAME) 71 73 logging.error(sys.exc_value) … … 101 103 logging.error(sys.exc_value) 102 104 105 # initialize category stuff 106 user_file = os.path.join(os.path.expanduser("~"), 107 'serialized_categories.p') 108 109 if not os.path.isfile(user_file): 110 # either first time starting sansview or the 111 # user has deleted their category file 112 my_dir = os.path.dirname(os.path.abspath(__file__)) 113 default_file = os.path.join(my_dir, '..', 114 'sansmodels', 115 'default_categories.p' ) 116 copy(default_file, user_file) 117 103 118 104 119 # Add welcome page -
sansview/setup_exe.py
rc329f4d rdf7a7e3 16 16 import os, sys 17 17 import platform 18 18 19 19 20 if len(sys.argv) == 1: … … 328 329 bundle_option = 3 329 330 331 #initialize category stuff 332 from sans.guiframe.CategoryInstaller import CategoryInstaller 333 CategoryInstaller.check_install() 334 335 336 330 337 setup( 331 338 windows=[target_wx_client], -
sansview/setup_mac.py
re558e0b rdf7a7e3 93 93 EXTENSIONS_LIST = find_extension() 94 94 95 #initialize category stuff 96 from sans.guiframe.CategoryInstaller import CategoryInstaller 97 CategoryInstaller.check_install() 98 99 95 100 96 101 plist = dict(CFBundleDocumentTypes=[dict(CFBundleTypeExtensions=EXTENSIONS_LIST,
Note: See TracChangeset
for help on using the changeset viewer.