blob: 3b995493aeea45e8f8c665cf43286c5a36862c86 (
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.getenv("LOCALAPPDATA"), "EEPHPH2", "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)
|