Encapsulate .py and .txt file into .exe file using PyInstaller

Viewed 308

I have a 2 files that I want to put in a .exe file. One of those files is a .py and another is a .txt
I couldn't find how to take more than one file and turn it into an executable. Please help.

1 Answers

You should put the .txt file in a folder and then put the name of the folder in the < folder > tags:
pyinstaller --onefile --windowed --add-data "<folder>;<folder>" <filename.py>

Related