Changeset dc1e729 in sasmodels


Ignore:
Timestamp:
May 10, 2016 3:09:04 AM (9 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:
da7af35
Parents:
e9d10a6
Message:

data_files() should return all files explicitly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/__init__.py

    rc2c51a2 rdc1e729  
    3333    add_patterns(['models', 'lib'], ['*.c']) 
    3434 
    35     return data_files 
     35    # Fish out full paths for all files. 
     36    import glob 
     37    return_list=[] 
     38    for key, values in data_files.iteritems(): 
     39        files_data=[] 
     40        for value in values: 
     41            files_data += [file for file in glob.glob(value)] 
     42        return_list.append([key, files_data]) 
     43    return return_list 
    3644 
     45 
Note: See TracChangeset for help on using the changeset viewer.