Files
swift-mirror/test/Inputs/not.py
tbkka 3181dd1e4c Fix a bunch of python lint errors (#32951)
* Fix a bunch of python lint errors

* adjust indentation
2020-07-17 14:30:21 -07:00

15 lines
308 B
Python

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)