summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkarama <79789208+dkarama@users.noreply.github.com>2021-04-06 17:46:38 +0000
committerGitHub <noreply@github.com>2021-04-06 17:46:38 +0000
commit630599daa011528b5e877d1a21f746cdf5fc3d83 (patch)
tree95bcbb38d91183ee19290c7efa9106cf21fc01f4
parent167dd9b81d0f7c42b36113bb3eff795b2e6c4e93 (diff)
parenta38fabda2581790d365cb82ea37cf45c1c7bb3a6 (diff)
downloadqutebrowser-630599daa011528b5e877d1a21f746cdf5fc3d83.tar.gz
qutebrowser-630599daa011528b5e877d1a21f746cdf5fc3d83.zip
Merge pull request #4 from dkarama/fix-library_path-usage
Remove reduntant operations
-rw-r--r--qutebrowser/misc/elf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/misc/elf.py b/qutebrowser/misc/elf.py
index aa92ff53f..307d3b4ac 100644
--- a/qutebrowser/misc/elf.py
+++ b/qutebrowser/misc/elf.py
@@ -316,12 +316,12 @@ def parse_webenginecore() -> Optional[Versions]:
else:
library_path = pathlib.Path(QLibraryInfo.location(QLibraryInfo.LibrariesPath))
- library_name = sorted(pathlib.Path(library_path).glob('libQt5WebEngineCore.so*'))
+ library_name = sorted(library_path.glob('libQt5WebEngineCore.so*'))
if not library_name:
log.misc.debug(f"No QtWebEngine .so found in {library_path}")
return None
else:
- lib_file = library_path / library_name[-1]
+ lib_file = library_name[-1]
log.misc.debug(f"QtWebEngine .so found at {lib_file}")
try: