diff options
author | pjotrp | 2016-02-24 17:41:55 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 09:31:10 +0000 |
commit | e42b21c66b09128ac6a9c18ca018287516d8c309 (patch) | |
tree | 9a87298a13358be4bd0217eed86ac90e10fab67a /wqflask/utility | |
parent | 9395e9f3cc2d06e069c5de797b2d6e8e59cfba7c (diff) | |
download | genenetwork2-e42b21c66b09128ac6a9c18ca018287516d8c309.tar.gz |
Minor fixes
Diffstat (limited to 'wqflask/utility')
-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..bd8cf584 --- /dev/null +++ b/wqflask/utility/external.py @@ -0,0 +1,9 @@ +# Call external program + +import os +import sys +import subprocess + +def shell(command): + if not subprocess.call(command, shell=True): + raise Exception("ERROR: failed on "+command) |