Replace subprocess.run with os.execv to directly exec the Rust binary

This commit is contained in:
AHaldner 2025-12-18 08:52:27 +01:00
parent 62fdc22c00
commit 6be2fd69ee

View File

@ -21,7 +21,7 @@ def run_rust():
return
# Run the rust executable, passing in all arguments
subprocess.run([str(pd)] + sys.argv[1:])
os.execv(str(pd), [str(pd), *sys.argv[1:]])
if __name__ == '__main__':