core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 74f7238 was
bdb653c,
checked in by krzywon, 9 years ago
|
Cross-platform compatibility for SESANS script.
|
-
Property mode set to
100644
|
File size:
263 bytes
|
Rev | Line | |
---|
[84db7a5] | 1 | import shlex, subprocess, sys |
---|
[bdb653c] | 2 | import platform |
---|
[84db7a5] | 3 | args = shlex.split("sesansfit.sh blah --edit") |
---|
| 4 | args[1] = sys.argv[1] |
---|
[bdb653c] | 5 | if platform.system() != "Windows": |
---|
| 6 | args = ["sh"] + args |
---|
| 7 | shellFlag = False |
---|
| 8 | else: |
---|
| 9 | shellFlag = True |
---|
| 10 | subprocess.Popen(args, shell=shellFlag) |
---|
Note: See
TracBrowser
for help on using the repository browser.