comments
This commit is contained in:
parent
53edd7b213
commit
ee1e84b2f3
@ -24,12 +24,24 @@ import sys
|
|||||||
import rclexecm
|
import rclexecm
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# We can use two different unrar python modules. Either python-rarfile
|
# We can use two different unrar python modules. Either python3-rarfile
|
||||||
# which is a wrapper over the the unrar command line, or python-unrar
|
# which is a wrapper over the the unrar command line, or python3-unrar
|
||||||
# which is a ctypes wrapper of the unrar lib. Python-rarfile is the
|
# which is a ctypes wrapper of the unrar lib.
|
||||||
# one commonly packaged on linux. Their interfaces is similar. Note
|
#
|
||||||
# that python-unrar uses forward slashes in internal file paths while
|
# Python3-rarfile is the one commonly packaged on linux.
|
||||||
# python-rarfile uses backslashes (ipaths are opaque anyway).
|
#
|
||||||
|
# Python3-unrar needs the libunrar library, built from unrar source
|
||||||
|
# code (https://www.rarlab.com/rar_add.htm), which is not packaged on
|
||||||
|
# Debian or Fedora, probably because of licensing issues. It is
|
||||||
|
# packaged as libunrar5 on Ubuntu, and there are Fedora packages on
|
||||||
|
# RPM Fusion, and it's probably easy to build the Ubuntu package on
|
||||||
|
# Debian. Python-unrar works much better and is the right choice if
|
||||||
|
# the licensing is not an issue.
|
||||||
|
#
|
||||||
|
# The interfaces is similar, but python-unrar uses forward slashes
|
||||||
|
# in internal file paths while python-rarfile uses backslashes (ipaths
|
||||||
|
# are opaque anyway).
|
||||||
|
|
||||||
using_unrar = False
|
using_unrar = False
|
||||||
try:
|
try:
|
||||||
from unrar import rarfile
|
from unrar import rarfile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user