Changeset efe730d in sasview for src/sas/sasgui/guiframe/CategoryInstaller.py
- Timestamp:
- Jun 25, 2016 4:07:33 AM (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:
- 899e084
- Parents:
- 9501661
- git-author:
- Paul Kienzle <pkienzle@…> (06/25/16 02:23:59)
- git-committer:
- Paul Kienzle <pkienzle@…> (06/25/16 04:07:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/CategoryInstaller.py
r50008e3 refe730d 11 11 import os 12 12 import sys 13 import shutil14 13 import json 15 14 from collections import defaultdict 15 16 from sas.sasgui import get_user_dir 16 17 17 18 USER_FILE = 'categories.json' … … 68 69 69 70 @staticmethod 70 def _get_home_dir():71 """72 returns the users sasview config dir73 """74 return os.path.join(os.path.expanduser("~"), ".sasview")75 76 @staticmethod77 71 def _regenerate_model_dict(master_category_dict): 78 72 """ … … 113 107 returns the user data file, eg .sasview/categories.json.json 114 108 """ 115 return os.path.join(CategoryInstaller._get_home_dir(), 116 USER_FILE) 109 return os.path.join(get_user_dir(), USER_FILE) 117 110 118 111 @staticmethod
Note: See TracChangeset
for help on using the changeset viewer.