mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-03-12 18:38:59 +01:00
18 lines
500 B
Python
18 lines
500 B
Python
"""
|
|
Command wrapper, for testing SCons.
|
|
|
|
Writes the command name to file "wrapper.out",
|
|
then passes the command line on to subprocess.
|
|
No checking is done.
|
|
"""
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
|
|
if __name__ == '__main__':
|
|
path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out')
|
|
if '--version' not in sys.argv and '-dumpversion' not in sys.argv:
|
|
with open(path, 'wb') as f:
|
|
f.write(b"wrapper.py\n")
|
|
subprocess.run(sys.argv[1:], check=False)
|