Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Commit

Permalink
replaced "exit()" with "sys.exit()" to workaround a py2exe problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Korneck committed Feb 7, 2015
1 parent cc1d62e commit f0a98f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified get_win8key.exe
Binary file not shown.
5 changes: 3 additions & 2 deletions get_win8key.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import ctypes
import ctypes.wintypes

Expand Down Expand Up @@ -66,9 +67,9 @@ def GetWindowsKey():
WindowsKey=GetWindowsKey()
if WindowsKey==False:
print("unexpected error")
exit(1)
sys.exit(1)
else:
print(str(WindowsKey))
except:
print("unexpected error")
exit(1)
sys.exit(1)

0 comments on commit f0a98f2

Please sign in to comment.