diff options
| -rw-r--r-- | README.md | 22 | ||||
| -rw-r--r-- | setup.py | 2 |
2 files changed, 16 insertions, 8 deletions
@@ -1,11 +1,19 @@ # eehph2 EEHPH Photo Viewer v2 -A lite photo viewer optimised for Windows 10 +A light photo viewer designed for Windows 10. -Several .dlls are required for this program to work. Therefore I set the cwd to the one in which the -file is located. However the program doesn't know where the install location is. Therefore there is -on_install_setup.exe to put the install location in APPDATA/LOCAL/EEHPH2/location.txt. This is a simple -python script compiled using Pyinstaller. (source on_install_setup/on_install_setup.py) Then when the program -is run, another script (TODO) is run which changes the cwd to the one in location.txt and runs the main -program as a module. After the user closes it it switches back to the original cwd. +The program can be run anywhere by right clicking and opening with this +file. This is a problem because with program requires several .ddls to work. +The solution is to set the program to a run a small script which changes the +cwd to the one in which the app is located (EEHPH2.py) and then run the main +app (EEHPH2_app.py) as a module. However the program doens't know where the +installation directory is. The solution is to use a script (on_install_setup.exe) +which sets the location of the installation directory in +%ALLUSERSPROFILE%/EEHPH2/location.txt. This script was compiled using pyinstaller +and it's source is on_install_setup/on_install_setup.py. There is a another script, +cleanup.exe, which was made in a similar way which deletes this file on uninstall. + +This program in written in Python3, compiled using cx_Freeze, and packaged using +inno. The inno script is at setup.iss. The setup for the cx_Freeze is setup.py. +This was done for the functionality of intallation and uninstallation scripts.
\ No newline at end of file @@ -27,7 +27,7 @@ exec_ = Executable( setup( name = "EEHPH Photo Viewer v2", options = {"build_exe": {"packages": packages, "include_files": include_files}}, - version = "2.0.1", + version = "2.1.1", description = "EEHPH2 by AE computer vision", author = "Edward Attenborough", executables = [exec_] |
