diff options
author | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-04 09:11:29 +0300 |
---|---|---|
committer | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-04 09:11:29 +0300 |
commit | 4d9695338d7fbb330b592729e2126c818a1b4c0b (patch) | |
tree | 19335736fae76e8a50f7be3cbe9592ecc95a57ac | |
parent | 26fca741bd06968e9c6a76d7ae21fbd71813ef6a (diff) |
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. ughv1.4
-rw-r--r-- | run.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ class WinFrame(wx.Frame): 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) |