From 950e0b8a32c88e60e3907807c3e13a208d2a5127 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 14 Jul 2015 21:13:29 +0300 Subject: [PATCH] linux arm fix --- python_libtorrent/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index 997b7e1..1715126 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -36,14 +36,17 @@ try: import libtorrent elif platform['system'] in ['linux_arm']: from ctypes import * - cdll.LoadLibrary(dirname + '/libtorrent-rasterbar.so.7') + dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7') + log('CDLL path = ' + dll_path) + liblibtorrent=CDLL(dll_path) + log('CDLL = ' + str(liblibtorrent)) import libtorrent elif platform['system'] in ['android_armv7', 'android_x86']: import imp from ctypes import * dll_path=os.path.join(dest_path, 'liblibtorrent.so') - print "CDLL path = " + dll_path + log('CDLL path = ' + dll_path) liblibtorrent=CDLL(dll_path) log('CDLL = ' + str(liblibtorrent))