Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author10se1ucgo <hammaadu1@gmail.com>2015-08-04 09:11:29 +0300
committer10se1ucgo <hammaadu1@gmail.com>2015-08-04 09:11:29 +0300
commit4d9695338d7fbb330b592729e2126c818a1b4c0b (patch)
tree19335736fae76e8a50f7be3cbe9592ecc95a57ac
parent26fca741bd06968e9c6a76d7ae21fbd71813ef6a (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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run.py b/run.py
index 1a63083..af09001 100644
--- a/run.py
+++ b/run.py
@@ -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)