Changeset 1a6cd57 in sasmodels for sasmodels/custom/__init__.py
- Timestamp:
- Oct 11, 2016 9:25:56 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2ccb775, 997d4eb
- Parents:
- c1904f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/custom/__init__.py
r2a0c7a6 r1a6cd57 8 8 to occur without error. 9 9 """ 10 from __future__ import division, print_function 10 11 12 import sys 11 13 import os 12 14 from os.path import basename, splitext … … 26 28 def load_module_from_path(fullname, path): 27 29 """load module from *path* as *fullname*""" 30 # Clear out old definitions, if any 31 if fullname in sys.modules: 32 del sys.modules[fullname] 28 33 module = imp.load_source(fullname, os.path.expanduser(path)) 29 34 #os.unlink(path+"c") # remove the automatic pyc file
Note: See TracChangeset
for help on using the changeset viewer.