core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 062db5a was
a78bebc,
checked in by Paul Kienzle <pkienzle@…>, 9 years ago
|
allow sascomp to work without sasview present
|
-
Property mode set to
100755
|
File size:
561 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | import sys |
---|
4 | import os |
---|
5 | import glob |
---|
6 | |
---|
7 | def main(): |
---|
8 | sasmodels = os.path.dirname(os.path.realpath(__file__)) |
---|
9 | root = os.path.dirname(sasmodels) |
---|
10 | sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib.*' )) |
---|
11 | sys.path.insert(0, os.path.join(root, 'bumps')) |
---|
12 | sys.path.insert(0, os.path.join(root, 'periodictable')) |
---|
13 | if sasview: # glob returns a list |
---|
14 | sys.path.insert(0, sasview[0]) |
---|
15 | sys.path.insert(0, sasmodels) |
---|
16 | |
---|
17 | import sasmodels.compare |
---|
18 | sasmodels.compare.main() |
---|
19 | |
---|
20 | if __name__ == "__main__": |
---|
21 | main() |
---|
Note: See
TracBrowser
for help on using the repository browser.