blob: c6ac3198e08a7121e5407ca8b7d82579c681dd2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import subprocess
def run_command(args):
print " ".join(args)
subprocess.check_call(args)
def run_with_sudo(args):
args_with_sudo = ["sudo"]
args_with_sudo.extend(args)
run_command(args_with_sudo)
|