mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
makepanda: Properly detect keyboard interrupts on Windows
This commit is contained in:
parent
287b0d5a74
commit
3c142a61ab
@ -635,6 +635,9 @@ def oscmd(cmd, ignoreError = False, cwd=None):
|
|||||||
|
|
||||||
res = os.spawnl(os.P_WAIT, exe_path, cmd)
|
res = os.spawnl(os.P_WAIT, exe_path, cmd)
|
||||||
|
|
||||||
|
if res == -1073741510: # 0xc000013a
|
||||||
|
exit("keyboard interrupt")
|
||||||
|
|
||||||
if cwd is not None:
|
if cwd is not None:
|
||||||
os.chdir(pwd)
|
os.chdir(pwd)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user