mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix importing system libtorrent
This commit is contained in:
parent
d91990d69f
commit
c69ed31bd8
6 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue