pull/1/head
DiMartinoXBMC 2015-07-19 10:13:37 +03:00
parent 63b3184a6a
commit 1fe4e26b56
1 changed files with 4 additions and 4 deletions

View File

@ -49,19 +49,19 @@ try:
finally: finally:
if fp: fp.close() if fp: fp.close()
elif platform['system'] in ['linux_x86_64', 'linux_arm']: 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') dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7')
log('CDLL path = ' + dll_path) log('CDLL path = ' + dll_path)
liblibtorrent=cdll(dll_path) liblibtorrent=CDLL(dll_path)
log('CDLL = ' + str(liblibtorrent)) log('CDLL = ' + str(liblibtorrent))
import libtorrent import libtorrent
elif platform['system'] in ['android_armv7', 'android_x86']: elif platform['system'] in ['android_armv7', 'android_x86']:
import imp import imp
from ctypes import * from ctypes import CDLL
dll_path=os.path.join(dest_path, 'liblibtorrent.so') dll_path=os.path.join(dest_path, 'liblibtorrent.so')
log('CDLL path = ' + dll_path) log('CDLL path = ' + dll_path)
liblibtorrent=cdll(dll_path) liblibtorrent=CDLL(dll_path)
log('CDLL = ' + str(liblibtorrent)) log('CDLL = ' + str(liblibtorrent))
path_list = [dest_path] path_list = [dest_path]