I have python project as below
sample
src
config
sam.xml
xmltest.py
Here I need to make exe file bundled with sam.xml file. Since xmltest.py depends on sam.xml file for config info i need to bundle the exe with xml as single exe file using pyinstaller.
we can make the exe file with below command. So it can bundled as single exe file.
pyinstaller xmltest.py --onefile
But sam.xml is not bundled with exe file.
I need the xml file bundled with exe file not outside the exe or any folder.
Is there anyway to bundle the xml file with exe using pyinstaller
or any other way?