Thank you, Dave.  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, the only thing that happens is that a small window appears for a 
fraction of a second.  (I think it's a command line window but I can't 
really tell.)  Furthermore, my myscript.py is 1951 kb, the same size as 
myscript.exe obtained by simply running; "pyinstaller myscript.py".  So I'm 
not sure what is going wrong and wonder if you have or anyone else has any 
suggestions. 

On Tuesday, March 14, 2017 at 7:02:15 PM UTC-4, davecortesi wrote:
>
>
>
> On Tue, Mar 14, 2017 at 1:19 PM, Owen Walker <[email protected] 
> <javascript:>> wrote:
>
>> 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'm going to use some redundant spaces and explicit monospaced font for 
> clarity. You say you run
>
>  pyinstaller --onefile  --add-data.wavFiles;wavFiles   myscript.py
>
> I don't think that's right, that period looks wrong to me. Also I hope you 
> are on Windows, otherwise the separator is a colon. So try this:
>
>  pyinstaller --onedir  --add-data  wavFiles;wavFiles   myscript.py
>
> Unless you are NOT on Windows, then
>
>  pyinstaller --onedir  --add-data   wavFiles:wavFiles   myscript.py
>  
> And if PyInstaller completes, as I said, go into the dist/myscript folder 
> and see what got bundled.
>
>
> I read   
>> http://pyinstaller.readthedocs.io/en/stable/runtime-information.html
>> but couldn't find anything helpful that I could understand.
>>
>
> I didn't understand where your operation was failing. I assumed the script 
> was executing but not finding the wavFiles. 
>

-- 
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