Fix importing system libtorrent
This commit is contained in:
parent
24a0ccee0a
commit
d4445adf20
|
@ -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
|
||||
|
|
|
@ -43,7 +43,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.configmanager
|
||||
|
|
|
@ -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.configmanager
|
||||
|
|
|
@ -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!")
|
||||
|
||||
import deluge.common
|
||||
|
|
|
@ -37,7 +37,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…
Reference in New Issue