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

Commit

Permalink
Ugh, admin check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Oct 1, 2015
1 parent 78c008f commit e54521a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Expand Up @@ -72,7 +72,7 @@ def __init__(self):
panel = wx.Panel(self) # Frame panel

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

4 comments on commit e54521a

@DeeJayhX
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@10se1ucgo Not sure why this keeps happening unless you're changing it for testing purposes 😄 I don't know what IDE you use, but I use MS Visual Studio with PTVS and I have two shortcuts on my desktop... The regular one, and one set to run as administrator. When I run MSVS as admin, my program gets interpreted as admin too for testing purposes.

@10se1ucgo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing purposes.

I don't really use an IDE, just Sublime

@DeeJayhX
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@10se1ucgo ah, so you python run.py 😝

Sublime is amazing... I'm trying it out to see if I want to make the switch! Thanks for the heads up.
Anything else you recommend:question:

@10se1ucgo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, get the package control add-on and install sidebargit, sublimerepl and anaconda

Please sign in to comment.