summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-26 18:19:46 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-26 18:19:46 +0100
commitdb8fee275c5bed35f0747f32903d868902e951d3 (patch)
tree1711d332bcf0aed30fe0132b903568a2219dc1ea
parentc15c0d944da14b0d0de5456117b2da09b10c6256 (diff)
downloadqutebrowser-db8fee275c5bed35f0747f32903d868902e951d3.tar.gz
qutebrowser-db8fee275c5bed35f0747f32903d868902e951d3.zip
utils: Fix resource cache on Windows
-rw-r--r--qutebrowser/utils/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py
index 18654749b..beb6e2578 100644
--- a/qutebrowser/utils/utils.py
+++ b/qutebrowser/utils/utils.py
@@ -199,7 +199,7 @@ def preload_resources() -> None:
for subdir, pattern in [('html', '*.html'), ('javascript', '*.js')]:
path = resource_path / subdir
for full_path in path.glob(pattern):
- sub_path = str(full_path.relative_to(resource_path))
+ sub_path = full_path.relative_to(resource_path).as_posix()
_resource_cache[sub_path] = read_file(sub_path)