Changeset bdb653c in sasmodels for example/fit_sesans.py


Ignore:
Timestamp:
Mar 17, 2016 12:07:15 PM (9 years ago)
Author:
krzywon
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
2352350
Parents:
6824af5
Message:

Cross-platform compatibility for SESANS script.

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.