Each runner used the exact same copy of `setup_stdio`, which is now provided by `api.setup_stdio`. Use that and remove the code duplication.
12 lines
205 B
Python
Executable file
12 lines
205 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
import subprocess
|
|
import sys
|
|
import osbuild.api
|
|
|
|
|
|
if __name__ == "__main__":
|
|
osbuild.api.setup_stdio()
|
|
|
|
r = subprocess.run(sys.argv[1:], check=False)
|
|
sys.exit(r.returncode)
|