Changeset 50008e3 in sasview
- Timestamp:
- Mar 20, 2016 4:25:51 PM (9 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:
- e4ca2eb
- Parents:
- 0b709f2c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/installer.iss
r25f223b r50008e3 71 71 Source: "dist\plugin_models\*"; DestDir: "{userdesktop}\..\.sasview\plugin_models"; Flags: recursesubdirs createallsubdirs 72 72 Source: "dist\config\custom_config.py"; DestDir: "{userdesktop}\..\.sasview\config"; Flags: recursesubdirs createallsubdirs 73 Source: "dist\default_categories.json"; DestDir: "{userdesktop}\..\.sasview"; DestName: " serialized_cat.json";73 Source: "dist\default_categories.json"; DestDir: "{userdesktop}\..\.sasview"; DestName: "categories.json"; 74 74 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 75 75 -
sasview/installer_generator.py
rb699768 r50008e3 202 202 msg += """Flags: recursesubdirs createallsubdirs\n""" 203 203 msg += """Source: "dist\default_categories.json"; DestDir: "{userdesktop}\..\.sasview";\t""" 204 msg += """DestName: " serialized_cat.json";\n"""204 msg += """DestName: "categories.json";\n""" 205 205 msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files""" 206 206 return msg -
setup.py
ra62945e r50008e3 47 47 if os.path.isfile(f_path): 48 48 os.remove(f_path) 49 f_path = os.path.join(sas_dir, " serialized_cat.json")49 f_path = os.path.join(sas_dir, "categories.json") 50 50 if os.path.isfile(f_path): 51 51 os.remove(f_path) -
src/sas/sasgui/guiframe/CategoryInstaller.py
r1ca0ac0 r50008e3 15 15 from collections import defaultdict 16 16 17 USER_FILE = ' serialized_cat.json'17 USER_FILE = 'categories.json' 18 18 19 19 class CategoryInstaller: … … 111 111 def get_user_file(): 112 112 """ 113 returns the user data file, eg .sasview/ serialized_cat.json113 returns the user data file, eg .sasview/categories.json.json 114 114 """ 115 115 return os.path.join(CategoryInstaller._get_home_dir(), … … 129 129 """ 130 130 the main method of this class 131 makes sure serialized_cat.json exists and if not131 makes sure categories.json exists and if not 132 132 compile it and install 133 133 :param homefile: Override the default home directory
Note: See TracChangeset
for help on using the changeset viewer.