summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrenda-br2023-03-03 17:19:40 +0530
committerbrenda-br2023-03-04 11:35:07 +0530
commitf92b631fc873a48fb8fa9950ace719003e7bc145 (patch)
tree8f0b6fb233cfda6a7990d73dade2eeb1dafe4b08 /src
parentbddcbfad0a1a8e420dd91c087a7b5cc38eada8c0 (diff)
downloadChemical-Simulator-GUI-f92b631fc873a48fb8fa9950ace719003e7bc145.tar.gz
Chemical-Simulator-GUI-f92b631fc873a48fb8fa9950ace719003e7bc145.tar.bz2
Chemical-Simulator-GUI-f92b631fc873a48fb8fa9950ace719003e7bc145.zip
Admin Privilege
Diffstat (limited to 'src')
-rw-r--r--src/main/python/mainApp.py6
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()