Revision ac4b68fbf45853ba4b9e327cb42f93f42a8fa252 authored by Ellie Shin on 17 March 2023, 04:14:20 UTC, committed by Ellie Shin on 17 March 2023, 04:14:20 UTC
1 parent f2c68fb
not.py
import shlex
import subprocess
import sys
if len(sys.argv) < 2:
print("Too few args to " + sys.argv[0])
sys.exit(0)
try:
isPosix = (sys.platform != "win32")
subprocess.check_call(shlex.split(sys.argv[1], posix=isPosix))
sys.exit(1)
except subprocess.CalledProcessError:
sys.exit(0)
Computing file changes ...