Changeset 40a87fa in sasmodels for sasmodels/custom/__init__.py
- Timestamp:
- Aug 8, 2016 11:24:11 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2472141
- Parents:
- 2d65d51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/custom/__init__.py
r56b2687 r40a87fa 16 16 from importlib.util import spec_from_file_location, module_from_spec # type: ignore 17 17 def load_module_from_path(fullname, path): 18 """load module from *path* as *fullname*""" 18 19 spec = spec_from_file_location(fullname, path) 19 20 module = module_from_spec(spec) … … 24 25 import imp 25 26 def load_module_from_path(fullname, path): 27 """load module from *path* as *fullname*""" 26 28 module = imp.load_source(fullname, path) 27 29 #os.unlink(path+"c") # remove the automatic pyc file … … 29 31 30 32 def load_custom_kernel_module(path): 33 """load SAS kernel from *path* as *sasmodels.custom.modelname*""" 31 34 # Pull off the last .ext if it exists; there may be others 32 35 name = basename(splitext(path)[0])
Note: See TracChangeset
for help on using the changeset viewer.