mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-04-16 20:15:55 +02:00
Attempt to self-elevate in python
This commit is contained in:
parent
9f3a750f56
commit
fa8ae96aba
@ -5,6 +5,10 @@ class WinUSB:
|
||||
|
||||
def __init__(self):
|
||||
self.u = utils.Utils("MakeInstall")
|
||||
if not self.u.check_admin():
|
||||
# Try to self-elevate
|
||||
self.u.elevate(os.path.realpath(__file__))
|
||||
exit()
|
||||
self.min_plat = 9600
|
||||
# Make sure we're on windows
|
||||
self.verify_os()
|
||||
|
Loading…
Reference in New Issue
Block a user