Last active
August 29, 2015 14:02
-
-
Save ZGainsforth/d558e5cd756afcd38b8f to your computer and use it in GitHub Desktop.
Run alphaMELTS from within Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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