Reputation: 410
I am trying to add one executable (.exe) file, a .conf file and a .bat file into the binary package created by pyinstaller and then through that binary package i want to call the .bat file that will send some commands to .exe and that exe will pick the configuration file from .conf and do its work.
** Example **
Click on Run button from Python Package.
Python Package runs .bat file inside it.
.bat file calls .exe with arguments
.exe picks config from .conf file and do its work
Upvotes: 1
Views: 959
Reputation: 717
Before you create the binary through pyinstaller:
Analysis
call in the .spec file.
When you run the binary created through pyinstaller it unpacks itself at a temporary location in AppData on Windows by default. You should be able to get that path through sys._MEIPASS
Upvotes: 2