Changeset a78bebc in sasmodels for sascomp


Ignore:
Timestamp:
Mar 19, 2016 10:24:36 AM (9 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:
206c87c
Parents:
e79f0a5
Message:

allow sascomp to work without sasview present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sascomp

    r7e9af82 ra78bebc  
    88    sasmodels = os.path.dirname(os.path.realpath(__file__)) 
    99    root = os.path.dirname(sasmodels) 
    10     sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib.*' ))[0] 
     10    sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib.*' )) 
    1111    sys.path.insert(0, os.path.join(root, 'bumps')) 
    1212    sys.path.insert(0, os.path.join(root, 'periodictable')) 
    13     sys.path.insert(0, sasview) 
     13    if sasview:  # glob returns a list 
     14        sys.path.insert(0, sasview[0]) 
    1415    sys.path.insert(0, sasmodels) 
    1516 
Note: See TracChangeset for help on using the changeset viewer.