From 4d9695338d7fbb330b592729e2126c818a1b4c0b Mon Sep 17 00:00:00 2001 From: 10se1ucgo Date: Tue, 4 Aug 2015 02:11:29 -0400 Subject: [PATCH] I have to change this from 0 whenever I'm writing code because my IDE doesn't support running as an administrator, and I always forget to change it to 1 again. ugh --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 1a63083..af09001 100644 --- a/run.py +++ b/run.py @@ -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)