diff --git a/setup.py b/setup.py index 53e85ea5..2a4a568f 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ vnctpmd = Extension("vnpy.api.ctp.vnctpmd", extra_compile_args=compiler_flags, extra_link_args=extra_link_args, depends=[], - runtime_library_dirs=["vnpy/api/ctp"], + runtime_library_dirs=["$ORIGIN"], language="cpp", ) vnctptd = Extension("vnpy.api.ctp.vnctptd", @@ -48,7 +48,7 @@ vnctptd = Extension("vnpy.api.ctp.vnctptd", libraries=["thostmduserapi", "thosttraderapi", ], extra_compile_args=compiler_flags, extra_link_args=extra_link_args, - runtime_library_dirs=["vnpy/api/ctp"], + runtime_library_dirs=["$ORIGIN"], depends=[], language="cpp", )