python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.41k stars 586 forks source link

eel.start 404 Not Found #639

Closed ZJUAlexChen closed 1 year ago

ZJUAlexChen commented 1 year ago

For PyCharm, according to the official document from JetBrain, "The preview functionality relies on the PyCharm built-in web server. This server is always running and does not require any manual configuration. All the project files are served on the built-in server with the root URL http://localhost:<built-in server port>/<project root>, with respect to the project structure." So, while directly eel.start(xxx, port=xxx), the webpage will be 404 Not Found, since the URL is missing the <built-in server port>/<project root> part. I wonder if I have any methods to modify the URL myself in eel.start. Thanks.

ZJUAlexChen commented 1 year ago

Just modify the "xxxx.html" with project directories and the problem is solved.

DansDesigns commented 10 months ago

same issue here, adding paths in the "xxx.html" call didnt solve it