Python To Exe File For Python 3.7
I tried PyInstaller, but I was unable to include configuration and .txt files in the package. cx_freeze throws an error during installation and py2exe is not supported for Python
Solution 1:
auto-py-to-exe supports Python 3.7.
The added data/txt files need to be read in the code like this:
open(sys._MEIPASS+ r'filename.txt').read()
It was taken from Stack Overflow question PyInstaller cannot add .txt files.
Post a Comment for "Python To Exe File For Python 3.7"