Fix shell detection by using os.execv instead of subprocess.run (#469)
Some checks failed
Shellcheck / check (push) Has been cancelled

Replace subprocess.run with os.execv to directly exec the Rust binary
This commit is contained in:
Andrin Haldner 2026-01-24 06:17:55 +01:00 committed by GitHub
parent 9a66c10afd
commit 62b0fd959f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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__':