In that post i made an application which's working well now but it needs the sound files and the image file in it's destination in order to open, normally without them it's supposed to work because they are added to the exe, packed with it normally what can i do to launch it without the need of the additional files (ofc without disabling them)?
Asked
Active
Viewed 43 times
0
-
Look into `sys._MEIPASS`. It lets you unpack external resources (like sounds, images) into a hidden, temporary directory, which is destroyed when the program terminates. – Paul M. Feb 14 '21 at 18:54
-
do you mean with internal apps which are pack with the exe? if not is there a way to get those files, to use them with pygame? (sounds) – Feb 14 '21 at 19:01
-
1@ShadowKurgansk Have a look at [this](https://stackoverflow.com/a/44352931/14094985) answer and the related post. – astqx Feb 14 '21 at 19:30