core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 821a9c6 was
d7cd7d1,
checked in by Paul Kienzle <pkienzle@…>, 9 years ago
|
allow command line bumps from fit_sesans driver
|
-
Property mode set to
100755
|
File size:
576 bytes
|
Rev | Line | |
---|
[4c1bfb3] | 1 | #!/usr/bin/env python |
---|
| 2 | import os |
---|
| 3 | import sys |
---|
| 4 | |
---|
| 5 | # Need to fix the paths to sasmodels and sasview if no eggs present |
---|
| 6 | ONEUP=os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
---|
| 7 | PROJECTS=os.path.dirname(ONEUP) |
---|
| 8 | SASMODELS=os.path.join(PROJECTS, 'sasmodels') |
---|
| 9 | SASVIEW=os.path.join(PROJECTS, 'sasview', 'src') |
---|
| 10 | BUMPS=os.path.join(PROJECTS, 'bumps') |
---|
| 11 | |
---|
| 12 | sys.path.insert(0, BUMPS) |
---|
| 13 | sys.path.insert(0, SASVIEW) |
---|
| 14 | sys.path.insert(0, SASMODELS) |
---|
| 15 | |
---|
[d7cd7d1] | 16 | if sys.argv[-1].startswith('-'): |
---|
| 17 | from bumps.cli import main as run_bumps |
---|
| 18 | else: |
---|
| 19 | from bumps.gui.gui_app import main as run_bumps |
---|
| 20 | run_bumps() |
---|
Note: See
TracBrowser
for help on using the repository browser.