When qutebrowser is installed as an .egg (like can happen with setup.py
install), importlib.resources.files(...) can return a zipfile.Path in
place of a pathlib.Path.
Unfortunately, those path objects don't support .glob(), nor do they
support things like .relative_to() or .as_posix(). Thus, if that's the
case, we need to implement our own poor globbing based on
.iterdir() (which they *do* support).
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| end2end | ||
| helpers | ||
| manual | ||
| unit | ||
| conftest.py | ||
| test_conftest.py | ||