aboutsummaryrefslogtreecommitdiffstats
path: root/manual_setup/manual_setup.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2018-04-19 13:31:57 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2018-04-19 13:31:57 +0100
commitf062d040e339f99033fa6668e6257c30c9d23cd9 (patch)
treede11dfc73a0eb5060ba0e9141aec2f45ee25d372 /manual_setup/manual_setup.py
parent560f27fb5d2e0de91db98c4b3773d579fb01fe86 (diff)
downloadeehph2-f062d040e339f99033fa6668e6257c30c9d23cd9.tar.gz
eehph2-f062d040e339f99033fa6668e6257c30c9d23cd9.zip
added manual setup script for .zip installs
Diffstat (limited to 'manual_setup/manual_setup.py')
-rw-r--r--manual_setup/manual_setup.py19
1 files changed, 19 insertions, 0 deletions
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