makepanda: Properly detect keyboard interrupts on Windows

This commit is contained in:
rdb 2022-02-07 11:10:32 +01:00
parent 287b0d5a74
commit 3c142a61ab

View File

@ -635,6 +635,9 @@ def oscmd(cmd, ignoreError = False, cwd=None):
res = os.spawnl(os.P_WAIT, exe_path, cmd)
if res == -1073741510: # 0xc000013a
exit("keyboard interrupt")
if cwd is not None:
os.chdir(pwd)
else: