Browse Source

makepanda: Properly detect keyboard interrupts on Windows

rdb 3 years ago
parent
commit
3c142a61ab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      makepanda/makepandacore.py

+ 3 - 0
makepanda/makepandacore.py

@@ -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: