mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
fix windows sleep
This commit is contained in:
1 parent
29d014a0e1
commit
8f5cc6174c
1 file changed
+1
-1
@@ -16,7 +16,7 @@ else:
|
||||
return ["cmd", "/C", f"echo {text}"]
|
||||
def sleep(secs):
|
||||
# TODO: make work in a non-unixy environment (something with timeout.exe?)
|
||||
return ["sleep", str(secs)]
|
||||
return ["powershell", "/C", "sleep", str(secs)]
|
||||
|
||||
p = subprocess.Popen(echo("test"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user