G
G
g1tufix2020-08-15 04:55:02
Python
g1tufix, 2020-08-15 04:55:02

How to call HTML from Python?

I made a Python application using the eel library, but when compiled with PyInstaller, the main.html file is not found, so I need to call the HTML code in the Python file, or otherwise compile the eel project into an exe file.
I did everything according to the instructions from the following video: https://www.youtube.com/watch?v=Gon0MvppfF8 (not ads)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
T0r4, 2020-11-14
@g1tufix

Also faced this problem.
Here is the solution. Open a command prompt, navigate to the project folder and enter the command.
python -m eel {main file} {layout folder} --onefile
example → python -m eel main.py web --onefile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question