Last change
on this file since ac995be was
424fe00,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
send sys.argv to main()
|
-
Property mode set to
100755
|
File size:
697 bytes
|
Rev | Line | |
---|
[7e9af82] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | import sys |
---|
| 4 | import os |
---|
| 5 | import glob |
---|
[5efe850] | 6 | import logging |
---|
| 7 | logging.basicConfig(level=logging.INFO) |
---|
[7e9af82] | 8 | |
---|
| 9 | def main(): |
---|
| 10 | sasmodels = os.path.dirname(os.path.realpath(__file__)) |
---|
| 11 | root = os.path.dirname(sasmodels) |
---|
[6708a6a] | 12 | sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib*' )) |
---|
[7e9af82] | 13 | sys.path.insert(0, os.path.join(root, 'bumps')) |
---|
| 14 | sys.path.insert(0, os.path.join(root, 'periodictable')) |
---|
[6708a6a] | 15 | sys.path.insert(0, os.path.join(root, 'tinycc', 'build', 'lib')) |
---|
[a78bebc] | 16 | if sasview: # glob returns a list |
---|
| 17 | sys.path.insert(0, sasview[0]) |
---|
[7e9af82] | 18 | sys.path.insert(0, sasmodels) |
---|
| 19 | |
---|
| 20 | import sasmodels.compare |
---|
[424fe00] | 21 | sasmodels.compare.main(*sys.argv[1:]) |
---|
[7e9af82] | 22 | |
---|
| 23 | if __name__ == "__main__": |
---|
| 24 | main() |
---|
Note: See
TracBrowser
for help on using the repository browser.