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

Commit

Permalink
I have to change this from 0 whenever I'm writing code because my IDE…
Browse files Browse the repository at this point in the history
… doesn't support running as an administrator, and I always forget to change it to 1 again. ugh
  • Loading branch information
10se1ucgo committed Aug 4, 2015
1 parent 26fca74 commit 4d96953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, parent, title):
self.redir = RedirectText(self.debug)
sys.stdout = self.redir

if ctypes.windll.shell32.IsUserAnAdmin() != 0:
if ctypes.windll.shell32.IsUserAnAdmin() != 1:
self.warn = wx.MessageDialog(parent=wxpanel,
message="Program requires elevation, please run it as an administrator",
caption="ERROR", style=wx.OK | wx.ICON_WARNING)
Expand Down

0 comments on commit 4d96953

Please sign in to comment.