From 1fe4e26b56764f5a870b87f9a9edeb0972ae57a0 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Sun, 19 Jul 2015 10:13:37 +0300 Subject: [PATCH] fix --- python_libtorrent/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index 08ff417..ec958d0 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -49,19 +49,19 @@ try: finally: if fp: fp.close() elif platform['system'] in ['linux_x86_64', 'linux_arm']: - from ctypes import * + from ctypes import CDLL dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7') log('CDLL path = ' + dll_path) - liblibtorrent=cdll(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 * + from ctypes import CDLL dll_path=os.path.join(dest_path, 'liblibtorrent.so') log('CDLL path = ' + dll_path) - liblibtorrent=cdll(dll_path) + liblibtorrent=CDLL(dll_path) log('CDLL = ' + str(liblibtorrent)) path_list = [dest_path]