Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller OneFile
#3
Build to one file and give no Path.
Then should the one .exe file find files that are in same dist folder.
I guess you most keep file name the same or have most have a way that read files in eg openpyxl.
from openpyxl import load_workbook

wb = load_workbook(filename='some.xlsx')
Build could eg be:
pyinstaller --onefile --console --add-data some.xlsx;.
In spec file it would be,there also easier to add more file if needed.
datas=[('some.xlsx', '.')],
Reply


Messages In This Thread
PyInstaller OneFile - by felixS_zema - Oct-08-2019, 01:43 PM
RE: PyInstaller OneFile - by Axel_Erfurt - Oct-08-2019, 03:29 PM
RE: PyInstaller OneFile - by snippsat - Oct-08-2019, 04:39 PM
RE: PyInstaller OneFile - by felixS_zema - Oct-09-2019, 09:07 AM
RE: PyInstaller OneFile - by felixS_zema - Oct-09-2019, 01:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyinstaller --onefile mhzr 6 3,318 Jun-24-2021, 05:56 PM
Last Post: Marbelous

Forum Jump:

User Panel Messages

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