diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
| commit | ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa (patch) | |
| tree | a9ba6c5f450c0a6ca377d5086bf751cd21dd7dee /EEHPH2.py | |
| parent | 4927409579cc7ccb60c7581faeefca28425dbe12 (diff) | |
| download | eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.tar.gz eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.zip | |
added setup script for cx_Freeze
Diffstat (limited to 'EEHPH2.py')
| -rw-r--r-- | EEHPH2.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/EEHPH2.py b/EEHPH2.py new file mode 100644 index 0000000..3b99549 --- /dev/null +++ b/EEHPH2.py @@ -0,0 +1,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)
\ No newline at end of file |
