aboutsummaryrefslogtreecommitdiffstats
path: root/EEHPH2.py
blob: d5915d56d6fdcac0a268a3d9cad90a90c40a9497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sys
import os

def find_location():
    filelocation = os.path.join(os.environ['ALLUSERSPROFILE'], "EEHPH2", "location.txt")
    file = open(filelocation, "r")
    applocation = file.readline()
    file.close()

    return applocation

initcwd = os.getcwd()

try:
    start = sys.argv[1]
except:
    start = None

os.chdir(find_location())

import EEHPH2_app

root = EEHPH2_app.App(start)
root.mainloop()

os.chdir(initcwd)