-1

I just finished my app and I would like to convert my script/file into an executable file. I've used some text files, images and stuff to build it.

Once I convert my py file into exe file, it will only work if it is on the same folder where the images, text files and the actual py file are.

I created a zip file and it works, but as I said, when you wanna run it you will see all the images, information... It does not look good for anyone who downloaded it

I also wanted to say thank you for the people who helped me with my other questions about fixing my program. I dont know how to tag them, but thank you.

Shiv
  • 370
  • 1
  • 14
Edu
  • 23
  • 6
  • 1
    Does this answer your question? [pyinstaller add folder with images in exe file](https://stackoverflow.com/questions/51264169/pyinstaller-add-folder-with-images-in-exe-file) – Stefan Apr 03 '22 at 14:51

1 Answers1

1

I would reccommend using auto-py-to-exe, a wrapper program that simplifies a lot of the tasks of using pyinstaller, a program that bundles python and the scripts into an executable.

pip install auto-py-to-exe

it can then be run with

auto-py-to-exe

It should open a new window where you can configure options (such as if you want to have a single executable file or if averything is in a folder. If your assets (images, etc.) are in a different folder, then you may have to add them to the bundle by configuring the options in the auto-py-to-exe window.

Froggo
  • 53
  • 6