The solution is to run: pyi-makespec yourscript.py Then edit the yourscript.spec script and add the files under datas in a= Analysis.
datas=[ ( '/pathToYourFile/main.kv', '.' )]
then run pyinstaller yourscript.spec should be good after that.
https://stackoverflow.com/questions/41870727/pyinstaller-adding-data-files
Comments
Post a Comment