Spaces:
Runtime error
Runtime error
File size: 191 Bytes
ec4b0ec |
1 2 3 4 5 6 7 8 9 |
from subprocess import call
import sys
def run_cmd(command):
try:
call(command, shell=True)
except KeyboardInterrupt:
print("Process interrupted")
sys.exit(1) |