Mar-01-2019, 02:49 PM
I do have some issues regarding the directory path value.
Let's say my folder structure is like this
So the program is must be execute the Startup.exe then trigger the buttons.
Each buttons will handle different .exe files inside the exe folder.
So before I compile the Python scripts to executable files, I did declared the config and log path. For instance:
But if I execute them via Startup.exe, it will point to the path before Startup.exe
So I modify those 2 paths to without ..\ and it work as expected.
So I wondering the path values should be declare where you are trigger from?
Thanks
Let's say my folder structure is like this
- Python
- config folder (containing several .ini files)
- log folder (containing several .log files)
- exe folder (containing several .exe files, these .exe files are compiled via pyinstaller)
- Startup.exe
- config folder (containing several .ini files)
So the program is must be execute the Startup.exe then trigger the buttons.
Each buttons will handle different .exe files inside the exe folder.
So before I compile the Python scripts to executable files, I did declared the config and log path. For instance:
CONST_LOG_PATH = '..\log\common.log' CONST_CONFIG_PATH = '..\config\common.config'So based on this paths value, if I execute the .exe itself (inside exe folder), it will point to the correct as I declared.
But if I execute them via Startup.exe, it will point to the path before Startup.exe
So I modify those 2 paths to without ..\ and it work as expected.
So I wondering the path values should be declare where you are trigger from?
Thanks