Merge pull request #31 from vitlav/master
improve paths to lib dirs for RAR plugins search
This commit is contained in:
commit
faf4cadca3
|
@ -575,7 +575,7 @@ def p7zip_supports_rar():
|
||||||
# the subdirectory and codec name
|
# the subdirectory and codec name
|
||||||
codecname = 'p7zip/Codecs/Rar29.so'
|
codecname = 'p7zip/Codecs/Rar29.so'
|
||||||
# search canonical user library dirs
|
# search canonical user library dirs
|
||||||
for libdir in ('/usr/lib', '/usr/local/lib'):
|
for libdir in ('/usr/lib', '/usr/local/lib', '/usr/lib64', '/usr/local/lib64', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu'):
|
||||||
fname = os.path.join(libdir, codecname)
|
fname = os.path.join(libdir, codecname)
|
||||||
if os.path.exists(fname):
|
if os.path.exists(fname):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue