I am trying to package together a sciter project that I have made. In sciter, it uses .htm and .css files. So I'd like to include this into my .exe and not have to include them separately. Here is how I the HTML file is used in the Python code:
# create window
frame = Frame()
# load file
frame.load_file("index.htm")
# install additional handler
ev2 = RootEventHandler(frame.get_root(), frame)
frame.run_app()
And here is how I create my exe using PyLauncher:
pyinstaller --add-binary "index.htm;index.css" launcher.py --onefile
NOTE: I am running this on Windows.
When I run my launcher, it says:
sciter.error.SciterError: Unable to load file file://C:/Users/user/launcher/dist/index.htm
[14684] Failed to execute script launcher
If I place the index.htm file and index.css file, it works fine however. So clearly, it is expecting those files to be included in the directory.