core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 3bcd03d was
bdb653c,
checked in by krzywon, 8 years ago
|
Cross-platform compatibility for SESANS script.
|
-
Property mode set to
100644
|
File size:
263 bytes
|
Line | |
---|
1 | import shlex, subprocess, sys |
---|
2 | import platform |
---|
3 | args = shlex.split("sesansfit.sh blah --edit") |
---|
4 | args[1] = sys.argv[1] |
---|
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.