-1

My data Files, including Images, Audios, Icons must be near my .exe file, without them I am not able to run my output, so how can I pack fully in one Executable File? By the way I am using pyinstaller or auto-py-to-exe.

Thanks in advance.

1 Answers1

0
pyinstaller -F -i <iconfile> <pythonfile>

If you put -F, you will get one file.

  • I know that, but I can't use my output exe file without other assets like background image, etc... – Robert Makeev Apr 13 '20 at 01:00
  • Maybe look at this: https://stackoverflow.com/questions/41870727/pyinstaller-adding-data-files – programmerpremium Apr 13 '20 at 16:18
  • Thank you for the link, but after attempting, it says successful, then it didn't work again when I moved away from the main directory folder to Desktop. – Robert Makeev Apr 13 '20 at 20:58
  • So it's not including my image file(s) inside the app, I think if there is no command which is packing fully as I would like, then is it possible to load that files via **URL**, when I open my ```.exe``` the image files load from the web automatically and allowing to use the app. Is this possible? – Robert Makeev Apr 13 '20 at 21:13