summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/resources.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-11-01 08:54:10 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-11-01 09:42:00 +0100
commit2df2cb280e599b2d313b943afd903d59984c2a9f (patch)
tree56982c76f2b263bf615cb86c18905f6c9a9826c9 /qutebrowser/utils/resources.py
parentd4c1391a709fd790a9d8a88aa2f84e65cc301795 (diff)
downloadqutebrowser-2df2cb280e599b2d313b943afd903d59984c2a9f.tar.gz
qutebrowser-2df2cb280e599b2d313b943afd903d59984c2a9f.zip
Remove some old PyInstaller handling
Diffstat (limited to 'qutebrowser/utils/resources.py')
-rw-r--r--qutebrowser/utils/resources.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/qutebrowser/utils/resources.py b/qutebrowser/utils/resources.py
index f561d6747..cd6284f7f 100644
--- a/qutebrowser/utils/resources.py
+++ b/qutebrowser/utils/resources.py
@@ -40,12 +40,6 @@ def _path(filename: str) -> pathlib.Path:
"""Get a pathlib.Path object for a resource."""
assert not posixpath.isabs(filename), filename
assert os.path.pardir not in filename.split(posixpath.sep), filename
-
- if hasattr(sys, 'frozen'):
- # For PyInstaller, where we can't store resource files in a qutebrowser/ folder
- # because the executable is already named "qutebrowser" (at least on macOS).
- return pathlib.Path(sys.executable).parent / filename
-
return importlib_resources.files(qutebrowser) / filename
@contextlib.contextmanager