How to add static(html, css, js, etc) files in pyinstaller to create standalone exe file?

From your question you can presume that the structure of your project is as follows: ├── index.html ├── jquery.js ├── main.py ├── my_custom.js └── styles.css For your case there are 2 options: using –add-data import os import sys from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets def resource_path(relative_path): “”” Get absolute path to resource, works for dev … Read more