Changeset f41027b in sasmodels for sasmodels/weights.py
- Timestamp:
- Jul 19, 2018 11:12:48 AM (6 years ago)
- Branches:
- master
- Children:
- d0fdba2
- Parents:
- 7609046
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/weights.py
r910c0f4 rf41027b 231 231 )) 232 232 233 SAS MODELS_WEIGHTS = "~/.sasview/weights/*.py"233 SAS_WEIGHTS_PATH = "~/.sasview/weights" 234 234 def load_weights(pattern=None): 235 235 # type: (str) -> None 236 236 """ 237 Load dispersion distributions matching the given pattern237 Load dispersion distributions matching the given glob pattern 238 238 """ 239 239 import logging … … 244 244 from .custom import load_custom_kernel_module 245 245 if pattern is None: 246 pattern = os.environ.get("SASMODELS_WEIGHTS", SASMODELS_WEIGHTS) 246 path = os.environ.get("SAS_WEIGHTS_PATH", SAS_WEIGHTS_PATH) 247 pattern = os.path.join(path, "*.py") 247 248 for filename in sorted(glob.glob(os.path.expanduser(pattern))): 248 249 try:
Note: See TracChangeset
for help on using the changeset viewer.