Python Forum
Making .exe file that requires access to text and html files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making .exe file that requires access to text and html files
#1
I've got a python project with the following directory:

pull.py
scrape.py
emailer.py
main.py
winter_2020.html
winter_2020.txt

I've converted the main.py (which requires access to the html and txt files) into an .exe using pyinstaller. It makes no difference whether I use the --onefile command: when I run it in the command terminal I get an FileNotFoundError: [Errno 2] No such file or directory: 'winter_2020.html' error.

How can I fix this?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to replace a string with a file (HTML file) tester_V 1 699 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  Making a question answering chatbot based on the files I upload into python. Joejones 1 1,153 May-19-2023, 03:09 PM
Last Post: deanhystad
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 773 Feb-16-2023, 08:11 PM
Last Post: cubangt
  azure TTS from text files to mp3s mutantGOD 2 1,639 Jan-17-2023, 03:20 AM
Last Post: mutantGOD
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 877 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,071 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  data file for .exe program to access ose 2 1,145 Nov-23-2022, 08:02 PM
Last Post: snippsat
Photo Making Zip file of a file and Directory Nasir 2 985 Oct-07-2022, 02:01 PM
Last Post: Nasir
  Writing into 2 text files from the same function paul18fr 4 1,629 Jul-28-2022, 04:34 AM
Last Post: ndc85430
  Delete empty text files [SOLVED] AlphaInc 5 1,511 Jul-09-2022, 02:15 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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