My Python script, myscript.py, uses several .wav files in the subfolder 
 /wavFiles located in the same directory as myscript.py.

I have tried adding as part creating of my Windows .exe in two ways. 
Neither seems to work.

First, I have tried the following command in the myscript folder: 
"pyinstaller --onefile --add-data.wavFiles;wavFiles myscript.py",which 
fails.  (Oddly enough, the following works on a Mac: "pyinstaller --onefile 
--add-data wavFiles:wavFiles myscript.py".)  What is the correct command to 
give?

2. I have tried the command: "pyi-makespec myscript.py" and in the 
resulting myscript.spec file I have edited the datas[], line to read:

 datas=[('wavFiles.*.WAV', 'wavFiles')], This also doesn't work.

Help would be appreciated.


Owen Walker

[email protected]

 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to