mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #190] using exit() simple gives an error #172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Deagleus on GitHub (Aug 6, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/190
So this is my script which i made just for testing:
import ctypesdef isAdmin():try:is_admin = (os.getuid() == 0)except AttributeError:is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0return is_adminis_admin = isAdmin()if not is_admin:ctypes.windll.user32.MessageBoxW(0, "Please run as administrator.", "RustClient", 32)quit()When i compile it using these settings :
I get this error when running it:
Does anyone have an idea why this happens?
@brentvollebregt commented on GitHub (Aug 6, 2021):
@Deagleus commented on GitHub (Aug 27, 2021):
my bad for being dumb.