diff options
Diffstat (limited to 'manual_setup')
| -rw-r--r-- | manual_setup/icon.ico | bin | 0 -> 31020 bytes | |||
| -rw-r--r-- | manual_setup/manual_setup.py | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/manual_setup/icon.ico b/manual_setup/icon.ico Binary files differnew file mode 100644 index 0000000..b81e427 --- /dev/null +++ b/manual_setup/icon.ico diff --git a/manual_setup/manual_setup.py b/manual_setup/manual_setup.py new file mode 100644 index 0000000..59fc2da --- /dev/null +++ b/manual_setup/manual_setup.py @@ -0,0 +1,19 @@ +import os + +location = input("Please copy in the path of the installation directory: ") +appdata = os.path.join(os.environ['ALLUSERSPROFILE'], "EEHPH2") + +try: + if not os.path.exists(appdata): + os.mkdir(appdata) + + file = open(os.path.join(appdata, "location.txt"), "w") + file.write(location) + file.close() + + print("location saved to %s. You can change it by running this program again." % location) + +except PermissionError as e: + print("Failed because of insufficeint permissions. Try running as admin. Error:[%s]" % e) + +input("Press any key to close...")
\ No newline at end of file |
