There was an error while loading. Please reload this page.
2 parents f979c13 + 2502f4a commit 42311f2Copy full SHA for 42311f2
2 files changed
builtins/extractcode_7z_system_provided/setup.py
@@ -14,7 +14,7 @@
14
15
setup(
16
name='extractcode_7z_system_provided',
17
- version='33.0.0',
+ version='33.0.1',
18
license='apache-2.0 AND lgpl-2.1 and unrar and brian-gladman-3-clause',
19
description=desc,
20
long_description=desc,
builtins/extractcode_7z_system_provided/src/extractcode_7z/__init__.py
@@ -44,7 +44,10 @@ def get_locations(self):
44
45
if any(dist in debian_based_distro for dist in distribution):
46
lib_dir = '/usr/bin'
47
- lib_7z = path.join(lib_dir, '7z')
+ for bin_name in ('7z', '7zz'):
48
+ lib_7z = path.join(lib_dir, bin_name)
49
+ if path.exists(lib_7z):
50
+ break
51
elif any(dist in rpm_based_distro for dist in distribution):
52
# 7zip proper is not available on dnf
53
lib_dir = '/usr/libexec/p7zip'
0 commit comments