Changeset e65c3ba in sasmodels for sasmodels/core.py
- Timestamp:
- Nov 28, 2017 4:09:34 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 32398dc
- Parents:
- 110f69c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r9e771a3 re65c3ba 10 10 11 11 import os 12 from os.path import basename, join as joinpath 13 from glob import glob 12 14 import re 13 from os.path import basename, dirname, join as joinpath14 from glob import glob15 15 16 16 import numpy as np # type: ignore … … 35 35 CUSTOM_MODEL_PATH = os.environ.get('SAS_MODELPATH', "") 36 36 if CUSTOM_MODEL_PATH == "": 37 path = joinpath(os.path.expanduser("~"), ".sasmodels", "custom_models") 38 if not os.path.isdir(path): 39 os.makedirs(path) 40 CUSTOM_MODEL_PATH = path 37 CUSTOM_MODEL_PATH = joinpath(os.path.expanduser("~"), ".sasmodels", "custom_models") 38 if not os.path.isdir(CUSTOM_MODEL_PATH): 39 os.makedirs(CUSTOM_MODEL_PATH) 41 40 42 41 try:
Note: See TracChangeset
for help on using the changeset viewer.