Changeset 1a6cd57 in sasmodels for sasmodels/custom/__init__.py


Ignore:
Timestamp:
Oct 11, 2016 9:25:56 AM (8 years ago)
Author:
jhbakker
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
Message:

commit of stuff from master from fast-merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/custom/__init__.py

    r2a0c7a6 r1a6cd57  
    88to occur without error. 
    99""" 
     10from __future__ import division, print_function 
    1011 
     12import sys 
    1113import os 
    1214from os.path import basename, splitext 
     
    2628    def load_module_from_path(fullname, path): 
    2729        """load module from *path* as *fullname*""" 
     30        # Clear out old definitions, if any 
     31        if fullname in sys.modules: 
     32            del sys.modules[fullname] 
    2833        module = imp.load_source(fullname, os.path.expanduser(path)) 
    2934        #os.unlink(path+"c")  # remove the automatic pyc file 
Note: See TracChangeset for help on using the changeset viewer.