aboutsummaryrefslogtreecommitdiffstats
path: root/manual_setup/manual_setup.py
blob: 59fc2dabada1b014163ac813483935a3317e57f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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...")