aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/external.py
blob: bd8cf584579c2cde27fd3cbe61f3ece56b3a5be7 (plain)
1
2
3
4
5
6
7
8
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)