Changeset a67ec83 in sasview
- Timestamp:
- May 2, 2017 11:02:06 PM (8 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 13fe3be
- Parents:
- c6bdb3b
- Location:
- installers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
installers/installer_generator.py
r2f6d340 ra67ec83 6 6 from __future__ import print_function 7 7 8 import local_config9 8 import os 10 9 import string … … 58 57 if ext.strip() not in ['.*', ''] and ext.strip() not in list_data: 59 58 list_data.append((ext, 'string', file_type)) 60 except :59 except Exception: 61 60 pass 62 61 try: … … 64 63 if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 65 64 list_app.append((ext, 'string', file_type)) 66 except :65 except Exception: 67 66 pass 68 67 try: … … 71 70 if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 72 71 list_app.append((ext, 'string', file_type)) 73 except :72 except Exception: 74 73 pass 75 74 return list_data, list_app … … 170 169 return msg 171 170 172 def write_language (language=['english'], msfile="compiler:Default.isl"):171 def write_languages(languages=('english',), msfile="compiler:Default.isl"): 173 172 """ 174 173 define the language of the application 175 174 """ 176 175 msg = '' 177 if language :176 if languages: 178 177 msg = "\n\n[Languages]\n" 179 for lang in language: 180 msg += """Name: "%s";\tMessagesFile: "%s"\n""" % (str(lang), 181 str(msfile)) 178 for lang in languages: 179 msg += """Name: "%s";\tMessagesFile: "%s"\n""" % (str(lang), str(msfile)) 182 180 return msg 183 181 … … 358 356 TEMPLATE += write_registry(data_extension=DATA_EXTENSION, 359 357 app_extension=APP_EXTENSION) 360 TEMPLATE += write_language ()358 TEMPLATE += write_languages() 361 359 TEMPLATE += write_tasks() 362 360 TEMPLATE += write_file() -
installers/setup_mac.py
red03b99 ra67ec83 135 135 """ 136 136 try: 137 list= []137 extensions = [] 138 138 EXCEPTION_LIST = ['*', '.', ''] 139 139 from sas.sascalc.dataloader.loader import Loader … … 142 142 #['All (*.*)|*.*'] 143 143 file_type, ext = string.split(item, "|*.", 1) 144 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list:145 list.append(ext)146 except :144 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in extensions: 145 extensions.append(ext) 146 except Exception: 147 147 pass 148 148 try: 149 149 file_type, ext = string.split(local_config.APPLICATION_WLIST, "|*.", 1) 150 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list:151 list.append(ext)152 except :150 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in extensions: 151 extensions.append(ext) 152 except Exception: 153 153 pass 154 154 try: 155 155 for item in local_config.PLUGINS_WLIST: 156 156 file_type, ext = string.split(item, "|*.", 1) 157 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in list:158 list.append(ext)159 except :157 if ext.strip() not in EXCEPTION_LIST and ext.strip() not in extensions: 158 extensions.append(ext) 159 except Exception: 160 160 pass 161 161 162 return list162 return extensions 163 163 164 164 EXTENSIONS_LIST = find_extension() … … 177 177 if os.path.isfile(libxml_path_test): 178 178 libxml_path = libxml_path_test 179 if libxml_path ==None:179 if libxml_path is None: 180 180 raise RuntimeError, "Could not find libxml2 on the system" 181 181
Note: See TracChangeset
for help on using the changeset viewer.