source: sasmodels/example/fit_sesans.py @ 3b12dea

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

Cross-platform compatibility for SESANS script.

  • Property mode set to 100644
File size: 263 bytes
RevLine 
[84db7a5]1import shlex, subprocess, sys
[bdb653c]2import platform
[84db7a5]3args = shlex.split("sesansfit.sh blah --edit")
4args[1] = sys.argv[1]
[bdb653c]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.