Which results in file:///E:/PySideFactory/web%20-%20Kopie/html/main.html - a perfectly valid local uri.
When I pass that to CreateBrowserSync as url then it does not load - in fact what I get is this in console:
Not allowed to load local resource: file:///E://PySideFactory/web%2520-%2520Kopie/html/main.html
The %2520 is a %20 encoded for urls again, resulting in a now invalid path as it is looking for a path with a literal %20 in the folder name.
If I leave out the ".as_uri()" then I get a regex error somewhere in cefpython internally, so I can't just pass the non-uri to cefpython.
How to avoid the double encode?
the "web%20-%20Kopie" folder is just there for me to investigate this issue.
I've looked at the github issue. I'll post my 2 cents about that there.