Changeset a7a5ff3 in sasmodels


Ignore:
Timestamp:
May 19, 2016 1:27:29 PM (9 years ago)
Author:
Brian Ben Maranville <brian.maranville@…>
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:
3a45c2c
Parents:
aa9e4e3
Message:

import was causing problems… seems like the import in sasmodels/custom/init.py from one thread would create a .pyc file, which would get picked up by the import in another thread before it was deleted as part of the load_module_from_path function. Then the name in file was …pyc which no longer existed, and checking the mtime of that never made sense anyway. So check the mtime of the source .py file instead for custom modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r558d3b3 ra7a5ff3  
    785785    model_info = dict( 
    786786        id=kernel_id,  # string used to load the kernel 
    787         filename=abspath(kernel_module.__file__), 
     787        filename=abspath(kernel_module.__file__.rstrip("cd")), 
    788788        name=name, 
    789789        title=kernel_module.title, 
Note: See TracChangeset for help on using the changeset viewer.