Fix shell detection by using os.execv instead of subprocess.run (#469)
Replace subprocess.run with os.execv to directly exec the Rust binary
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ def run_rust():
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Run the rust executable, passing in all arguments
|
# 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__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user