diff options
Diffstat (limited to 'src/main/python')
-rw-r--r-- | src/main/python/mainApp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/python/mainApp.py b/src/main/python/mainApp.py index d278f83..a2869b0 100644 --- a/src/main/python/mainApp.py +++ b/src/main/python/mainApp.py @@ -5,6 +5,7 @@ import ctypes import sys import datetime from functools import partial +import pyuac current = os.path.dirname(os.path.realpath(__file__)) parentPath = os.path.dirname(current) @@ -410,4 +411,7 @@ def main(): if __name__ == '__main__': - main() + if not pyuac.isUserAdmin(): + pyuac.runAsAdmin() + else: + main() |