When I run pyinstaller --onefile --add-data.wavFiles;wavFiles myscript.py (or the same with --onedir) I get this message: "--add-data: invalid add-data_or_binary_value:'wavFiles:wavFiles." This leaves me mystified.
I read http://pyinstaller.readthedocs.io/en/stable/runtime-information.html
but couldn't find anything helpful that I could understand.
I have tried: "pyinstaller --onedir --add-data wavFiles;wavFiles myscript.py" and it does not produce an error. Further the folder dist/myscript contains not only myscript.exe but also a copy of wavFiles.
But when you move myscript.exe to a new folder and doublclick on it,
No Steve, That doesn't work. And even if it did, how would you transfer the program to another computer? I'm looking for a normal windows exe file that can be transferred to another computer and still work.
I like your second suggestion, because it is easier for on the recipient than the first. The only trouble is that when I use the command:"pyinstaller --clean -y --onefile --add-data wavFiles;wavFiles myscript.py" and I get a single file myscript.exe in the build folder, and when I click on this folder, myscript runs, but the wave files don't work.What am I doing wrong?
Dave,
Where is the application looking for the data files?
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To post to this group, send email to pyins...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
--
Raoul Snyman
082 550 3754
ra...@snyman.info