-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute a ZIP archive example #22
Comments
@c-smile Andrew, has something been changed in zip archive handling? |
Nothing have changed in .ZIP handling respect. Check if SciterLoadFile gets called with absolute path or absolute file URL. |
@c-smile Well, it did work in past. archive.zip contains "archived.htm". It was referenced as "archive.zip#archived.htm" and it used to work. Now, I get for "archive.zip#archived.htm" the following:
And for "archive.zip/archived.htm":
The only thing that works is: "archive.zip" as URL with "index.htm" in it. So, is it possible to load a specific HTML from a ZIP archive? If yes, how? |
Is this relative URL: |
No, it's an absolute url in all cases. |
Check if https://github.com/c-smile/sciter-sdk/blob/master/samples/zip/test-explicit-main.htm works in wsciter/usciter on your machine. |
I suspect it is not absolute URL according to this:
|
Well, it's all about absolute paths. URL "archive.zip#archived.htm" doesn't work anymore. But that leads us to a broken example with "archive.zip" - well, it was just a trick anyway. |
By the way,has a way to load an ZIP with ZIP's password(prevent some body to modify the core files)? |
OS: Windows 10
Python version: 3.6
Pysciter: 0.4.29
When I was trying to run
python ./archive.zip
I got this error
The text was updated successfully, but these errors were encountered: