Commit 820e33b6 authored by wanli's avatar wanli

uppdate

parent 8cca3e9b
...@@ -14,10 +14,12 @@ import hashlib ...@@ -14,10 +14,12 @@ import hashlib
from ctypes import * from ctypes import *
import platform import platform
lib_path = os.path.dirname(os.path.abspath(__file__))
if platform.system() == 'Windows': if platform.system() == 'Windows':
pDll = CDLL(os.sep.join([os.path.abspath(__file__), "lib", "eheatshrink.dll"])) pDll = CDLL(os.sep.join([lib_path, "lib", "eheatshrink.dll"]))
elif platform.system() == 'Linux': elif platform.system() == 'Linux':
pDll = CDLL(os.sep.join([os.path.abspath(__file__), "lib", "libeheatshrink.so"])) pDll = CDLL(os.sep.join([lib_path, "lib", "libeheatshrink.so"]))
pDll.ecompress_size.restype = c_uint32 pDll.ecompress_size.restype = c_uint32
pDll.ecompress_size.argtypes = [c_void_p, c_uint32] pDll.ecompress_size.argtypes = [c_void_p, c_uint32]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment