Changes in example/fit_sesans.py [84db7a5:bdb653c] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • example/fit_sesans.py

    r84db7a5 rbdb653c  
    11import shlex, subprocess, sys 
     2import platform 
    23args = shlex.split("sesansfit.sh blah --edit") 
    34args[1] = sys.argv[1] 
    4 subprocess.Popen(args, shell="True") 
     5if platform.system() != "Windows": 
     6    args = ["sh"] + args 
     7    shellFlag = False 
     8else: 
     9    shellFlag = True 
     10subprocess.Popen(args, shell=shellFlag) 
Note: See TracChangeset for help on using the changeset viewer.