source: sasmodels/example/fit_sesans.py @ 02e70ff

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 02e70ff was bdb653c, checked in by krzywon, 9 years ago

Cross-platform compatibility for SESANS script.

  • Property mode set to 100644
File size: 263 bytes
Line 
1import shlex, subprocess, sys
2import platform
3args = shlex.split("sesansfit.sh blah --edit")
4args[1] = sys.argv[1]
5if platform.system() != "Windows":
6    args = ["sh"] + args
7    shellFlag = False
8else:
9    shellFlag = True
10subprocess.Popen(args, shell=shellFlag)
Note: See TracBrowser for help on using the repository browser.