diff options
author | zsloan | 2016-05-17 16:04:11 +0000 |
---|---|---|
committer | zsloan | 2016-05-17 16:04:11 +0000 |
commit | f7520d9a6e05b103bab983c31ef0e53fad59f5e6 (patch) | |
tree | a1ba729c38a48806ca43540a960d655aaa9989e9 /wqflask/utility/external.py | |
parent | 2dfc56250714cb494eb7f3072b1e7cae18edace4 (diff) | |
parent | 04afa563e6d53fe2a91ac2e6eb4af2f2fa5d5c3b (diff) | |
download | genenetwork2-f7520d9a6e05b103bab983c31ef0e53fad59f5e6.tar.gz |
Merge branch 'staging' of github.com:genenetwork/genenetwork2 into development
Diffstat (limited to 'wqflask/utility/external.py')
-rw-r--r-- | wqflask/utility/external.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wqflask/utility/external.py b/wqflask/utility/external.py new file mode 100644 index 00000000..50afea08 --- /dev/null +++ b/wqflask/utility/external.py @@ -0,0 +1,9 @@ +# Call external program + +import os +import sys +import subprocess + +def shell(command): + if subprocess.call(command, shell=True) != 0: + raise Exception("ERROR: failed on "+command) |