aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/external.py
diff options
context:
space:
mode:
authorpjotrp2016-02-24 17:41:55 +0000
committerPjotr Prins2016-04-20 09:31:10 +0000
commite42b21c66b09128ac6a9c18ca018287516d8c309 (patch)
tree9a87298a13358be4bd0217eed86ac90e10fab67a /wqflask/utility/external.py
parent9395e9f3cc2d06e069c5de797b2d6e8e59cfba7c (diff)
downloadgenenetwork2-e42b21c66b09128ac6a9c18ca018287516d8c309.tar.gz
Minor fixes
Diffstat (limited to 'wqflask/utility/external.py')
-rw-r--r--wqflask/utility/external.py9
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)