Hi,

I am completely new to using this and need some help.

I am a new python programmer. I made a game that uses some images in a 
folder named images. The game also uses some sounds in a folder named 
sounds.
I can't seem to figure out how to include these in the pyinstaller command 
to generate an .exe file.

I have my game.py, images, and sounds directories all in the same location. 

I have looked at a lot of different tutorials that all only show you how to 
use pyinstaller with just a single .py file

(for some reason everything after this is in itallics and this site wont 
let me change it?)
 I have tried to use the option:

--add-data <SRC;DEST or SRC:DEST>


But I have no idea what SRC;DEST is supposed to be. Some of the tutorials 
say to just put in your folder with a slash at the end
like pyinstaller --add-data "img/"  but then I would need the ; and a DEST 
right? what is that?

Can someone please tell me the command to type to make this work.  It is 
just my game.py and a img and snd directory. Like exactly what to type to 
make this work. Please.

I have tried many variations of the command like:
pyinstaller --add-data "img/";"img" game.py
but nothing seems to work. I always get an error for the background image 
file not being found. (it is the first file from these directories that my 
code accesses.)

I have also tried using cxfreeze with the exact same problem. No idea how 
to add directories. It is mentioned in a lot of youtube tutorials but never 
is complete.

Thank you for any help you can provide.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/f1c4eb86-3006-4cbb-a71f-1a5a60a7d268o%40googlegroups.com.

Reply via email to