Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyinstaller usage
#1
Hi team,
I am using pyinstaller to cerate a exe of my main.py. The main uses different other python_scripts.py which are located in the same folder.
How do you add them into your query. I tried this but it is not working properly. Awesome if you could help.

pyinstaller --onefile --add-data "folder/script1.py:folder/" --add-data "folder/script2.py:folder/" folder/main.py

Still looking for the files in the dist folder
Reply
#2
better use the full path for "folder/script1.py:folder/"
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020