Changeset 3d9001f in sasmodels


Ignore:
Timestamp:
Aug 9, 2016 6:27:00 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
672978c
Parents:
ec87470
Message:

fix missing models problem for py2exe version: now looking in sasmodels-data for the model definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    r2547694 r3d9001f  
    6666    if kind and kind not in KINDS: 
    6767        raise ValueError("kind not in " + ", ".join(KINDS)) 
    68     root = dirname(__file__) 
    69     files = sorted(glob(joinpath(root, 'models', "[a-zA-Z]*.py"))) 
     68    files = sorted(glob(joinpath(generate.MODEL_PATH, "[a-zA-Z]*.py"))) 
    7069    available_models = [basename(f)[:-3] for f in files] 
    7170    selected = [name for name in available_models if _matches(name, kind)] 
Note: See TracChangeset for help on using the changeset viewer.