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