Changeset e52010a in sasview
- Timestamp:
- Apr 5, 2011 10:54:58 AM (14 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:
- 5e175e1
- Parents:
- 59b8c74
- Location:
- sansview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/installer_generator.py
rb0e8beb re52010a 20 20 21 21 OutputBaseFilename = local_config.OutputBaseFilename 22 SetupIconFile = local_config.SetupIconFile 22 SetupIconFile = local_config.SetupIconFile_win 23 23 LicenseFile = 'license.txt' 24 24 DisableProgramGroupPage = 'yes' -
sansview/local_config.py
rb0e8beb re52010a 63 63 SPLASH_SCREEN_HEIGHT = 366 64 64 SS_MAX_DISPLAY_TIME = 3000 #3 sec 65 SetupIconFile = os.path.join("images", "ball.ico") 65 SetupIconFile_win = os.path.join("images", "ball.ico") 66 SetupIconFile_mac = os.path.join("images", "ball.icns") 66 67 DefaultGroupName = "DANSE" 67 68 OutputBaseFilename = "setupSansView" -
sansview/setup_mac.py
r66ddd57 re52010a 10 10 from distutils.sysconfig import get_python_lib 11 11 import os 12 import string 13 import local_config 12 14 15 ICON = local_config.SetupIconFile_mac 13 16 DATA_FILES = [] 14 17 RESOURCES_FILES = [] 18 EXTENSIONS_LIST = [] 15 19 16 20 #Periodictable data file 17 21 DATA_FILES = periodictable.data_files() 18 22 #add guiframe data file 23 import sans.guiframe as guiframe 24 DATA_files += guiframe.data_files() 19 25 #invariant and calculator help doc 20 26 import sans.perspectives.calculator as calculator … … 24 30 import sans.models as models 25 31 DATA_FILES += models.data_files() 26 import sans.guiframe as guiframe27 DATA_FILES += guiframe.data_files()28 32 29 33 #CANSAxml reader data files 30 RESOURCES_FILES.append(os.path.join(DataLoader.readers.get_data_path(),'defaults.xml')) 34 RESOURCES_FILES.append(os.path.join(DataLoader.readers.get_data_path(), 35 'defaults.xml')) 36 # locate file extensions 37 def find_extension(): 38 """ 39 Describe the extensions that can be read by the current application 40 """ 41 try: 42 list = [] 43 EXCEPTION_LIST = ['*', '.', ''] 44 #(ext, type, name, flags) 45 from DataLoader.loader import Loader 46 wild_cards = Loader().get_wildcards() 47 for item in wild_cards: 48 #['All (*.*)|*.*'] 49 file_type, ext = string.split(item, "|*.", 1) 50 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list: 51 list.append((ext, 'string', file_type)) 52 except: 53 raise 54 try: 55 file_type, ext = string.split(local_config.APPLICATION_WLIST, "|*.", 1) 56 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list: 57 list.append((ext, 'string', file_type)) 58 except: 59 raise 60 try: 61 for item in local_config.PLUGINS_WLIST: 62 file_type, ext = string.split(item, "|*.", 1) 63 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list: 64 list.append((ext, 'string', file_type)) 65 except: 66 raise 67 68 return list 69 70 EXTENSIONS_LIST = find_extension() 71 temp = [] 72 for (ext, _, file_type) in EXTENSIONS_LIST: 73 dict(CFBundleTypeTypeExtensions=[str(ext)], 74 CFBundleTypeIconFile=ICON, 75 CFBundleTypeName=str(file_type), 76 CFBundleTypeRole="Viewer") 77 temp.append(dict) 78 79 PLIST = dict(CFBundleDocumentTypes=temp) 80 31 81 32 82 # Locate libxml2 library … … 44 94 OPTIONS = {'argv_emulation': True, 45 95 'packages': ['lxml','periodictable'], 46 'iconfile': 'images/ball.icns',96 'iconfile': ICON, 47 97 'frameworks':[libxml_path], 48 'resources': RESOURCES_FILES 98 'resources': RESOURCES_FILES, 99 'plist':PLIST 49 100 } 50 101 … … 56 107 setup_requires=['py2app'], 57 108 ) 109
Note: See TracChangeset
for help on using the changeset viewer.