Skip to content

Commit f3236e2

Browse files
authored
Update pyarchivefile.py
1 parent 4615f5e commit f3236e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyarchivefile/pyarchivefile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
# LibArchive / BSDTar Support
9090
libarchive_support = False
9191
try:
92-
import libarchive
92+
try:
93+
import libarchive.public as libarchive
94+
except ImportError:
95+
import libarchive
9396
libarchive_support = True
9497
except (ImportError, OSError):
9598
pass

0 commit comments

Comments
 (0)