Changeset bdb653c in sasmodels for example


Ignore:
Timestamp:
Mar 17, 2016 10:07:15 AM (8 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.

Location:
example
Files:
2 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) 
  • example/sesansfit.sh

    r15bd6e7 rbdb653c  
    88set -x 
    99 
    10 pythonw -m bumps.cli $* 
     10python -m bumps.cli $* 
Note: See TracChangeset for help on using the changeset viewer.