Changeset 988deab in sasview for installers
- Timestamp:
- Apr 20, 2018 9:07:13 AM (7 years ago)
- Branches:
- 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
- Children:
- 38f838e
- Parents:
- aefde77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
installers/installer_generator.py
- Property mode changed from 100755 to 100644
r0595bb7 r988deab 55 55 for item in wild_cards: 56 56 #['All (*.*)|*.*'] 57 file_type, ext = string.split(item,"|*", 1)57 file_type, ext = item.split("|*", 1) 58 58 if ext.strip() not in ['.*', ''] and ext.strip() not in list_data: 59 59 list_data.append((ext, 'string', file_type)) … … 61 61 pass 62 62 try: 63 file_type, ext = string.split(local_config.APPLICATION_WLIST,"|*", 1)63 file_type, ext = local_config.APPLICATION_WLIST.split("|*", 1) 64 64 if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 65 65 list_app.append((ext, 'string', file_type)) … … 68 68 try: 69 69 for item in local_config.PLUGINS_WLIST: 70 file_type, ext = string.split(item,"|*", 1)70 file_type, ext = item.split("|*", 1) 71 71 if ext.strip() not in ['.', ''] and ext.strip() not in list_app: 72 72 list_app.append((ext, 'string', file_type)) … … 83 83 msg = "" 84 84 if data_extension is not None and data_extension: 85 msg = "\n\n[Registry]\n" 85 86 openwithlist = "OpenWithList\%s" % str(APPLICATION) 86 msg = "\n\n[Registry]\n"87 87 for (ext, type, _) in data_extension: 88 88 list = os.path.join(ext, openwithlist) … … 192 192 return msg 193 193 194 dist_path = "dist "194 dist_path = "dist\sasview" 195 195 def write_file(): 196 196 """ … … 200 200 msg += """Source: "%s\%s";\t""" % (dist_path, str(APPLICATION)) 201 201 msg += """DestDir: "{app}";\tFlags: ignoreversion\n""" 202 msg += """Source: "dist\ *";\tDestDir: "{app}";\t"""202 msg += """Source: "dist\sasview\*";\tDestDir: "{app}";\t""" 203 203 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 204 msg += """Source: "dist\ plugin_models\*";\tDestDir: "{userdesktop}\..\.sasview\plugin_models";\t"""204 msg += """Source: "dist\sasview\plugin_models\*";\tDestDir: "{userdesktop}\..\.sasview\plugin_models";\t""" 205 205 msg += """Flags: recursesubdirs createallsubdirs\n""" 206 msg += """Source: "dist\compiled_models\*";\tDestDir: "{userdesktop}\..\.sasmodels\compiled_models";\t""" 207 msg += """Flags: recursesubdirs createallsubdirs\n""" 208 msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userdesktop}\..\.sasview\config";\t""" 206 msg += """Source: "dist\sasview\custom_config.py";\tDestDir: "{userdesktop}\..\.sasview\config";\t""" 209 207 msg += """Flags: recursesubdirs createallsubdirs\n""" 210 208 #msg += """Source: "dist\default_categories.json"; DestDir: "{userdesktop}\..\.sasview";\t"""
Note: See TracChangeset
for help on using the changeset viewer.