Skip to content

Instantly share code, notes, and snippets.

@ZGainsforth
Last active August 29, 2015 14:02
Show Gist options
  • Save ZGainsforth/d558e5cd756afcd38b8f to your computer and use it in GitHub Desktop.
Save ZGainsforth/d558e5cd756afcd38b8f to your computer and use it in GitHub Desktop.
Run alphaMELTS from within Python.
import os
# Go to the directory where the alphaMELTS input files are.
os.chdir('/Users/Zack/Desktop/Testcmd')
# Run the shell script.
process = subprocess.Popen('./runit', shell=True)
process.wait()
print 'done'
PATH=$PATH:/Applications/alphamelts:/Users/Zack/bin
run_alphamelts.command -f alphamelts_settings.txt -b mybatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment