Changeset 29464ba in sasmodels for sasmodels/models


Ignore:
Timestamp:
Apr 27, 2016 8:26:19 AM (8 years ago)
Author:
piotr
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:
9ccf580
Parents:
a062d18
Message:

Separate location for precompiled dlls. Py2exe on windows doesn't allow bundling non-py files insise the zip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/__init__.py

    r1ca1fd9 r29464ba  
    5353    for f in im_list: 
    5454        data_files.append(('media/models_media/img', [f])) 
     55 
     56    # Add precompiled models dlls to the top level directory "models" 
     57    path_img = get_data_path(media=os.path.join("sasmodels","sasmodels","models","dll")) 
     58    is_list = findall(path_img) 
     59    for f in is_list: 
     60        if os.path.splitext(f)[1] == ".so": 
     61            data_files.append(('models', [f])) 
     62 
    5563    return data_files 
    5664 
Note: See TracChangeset for help on using the changeset viewer.