Fix importing system libtorrent
This commit is contained in:
parent
d91990d69f
commit
c69ed31bd8
@ -32,7 +32,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
from deluge.log import LOG as log
|
||||
|
||||
@ -29,7 +29,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
import deluge.component as component
|
||||
|
||||
@ -42,7 +42,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
from deluge.configmanager import ConfigManager
|
||||
|
||||
@ -31,7 +31,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
import deluge.common
|
||||
|
||||
@ -36,7 +36,7 @@ try:
|
||||
import deluge.libtorrent as lt
|
||||
except ImportError:
|
||||
import libtorrent as lt
|
||||
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
|
||||
if not (lt.version_major == 0 and lt.version_minor == 14):
|
||||
raise ImportError("This version of Deluge requires libtorrent 0.14!")
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user