From 8254d2310dd3103b78702b96ea5d0a9226099dc6 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 30 Mar 2019 23:15:39 +0800 Subject: [PATCH] [Fix]bugs in load apex dll --- vnpy/api/apex/vnapex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/api/apex/vnapex.py b/vnpy/api/apex/vnapex.py index cd4e3469..2a425636 100644 --- a/vnpy/api/apex/vnapex.py +++ b/vnpy/api/apex/vnapex.py @@ -5,8 +5,8 @@ from ctypes import (cdll, CFUNCTYPE, c_void_p, create_string_buffer, byref) -DLL_PATH = Path(__file__).join("AbossFixApi.dll") -APEX = cdll.LoadLibrary(DLL_PATH) +DLL_PATH = Path(__file__).parent.joinpath("FixApi.dll") +APEX = cdll.LoadLibrary(str(DLL_PATH)) REPLY_FUNC = CFUNCTYPE(c_bool, c_long, c_long, c_int) PUSH_FUNC = CFUNCTYPE(c_bool, c_long, c_long, c_long, c_char_p)