aboutsummaryrefslogtreecommitdiff
path: root/gn2/utility/external.py
blob: 805d2ffecb7da0e3c74ec3ad4dac00bafb34a107 (plain)
1
2
3
4
5
6
7
8
9
10
# 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)