Skip to content

Commit

Permalink
Merge pull request ztxz16#381 from helloimcx/fix
Browse files Browse the repository at this point in the history
Fix 修复windows下python简易接口不能加载fastllm_tools.dll
  • Loading branch information
ztxz16 authored Dec 26, 2023
2 parents 213752d + a5fd7f4 commit 2aa2bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fastllm_pytools/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import platform
if platform.system() == 'Windows':
fastllm_lib = ctypes.cdll.LoadLibrary(os.path.join(os.path.split(os.path.realpath(__file__))[0], "fastllm_tools.dll"))
fastllm_lib = ctypes.CDLL(os.path.join(os.path.split(os.path.realpath(__file__))[0], "fastllm_tools.dll"), winmode=0)
elif platform.system() == 'Darwin':
fastllm_lib = ctypes.cdll.LoadLibrary(os.path.join(os.path.split(os.path.realpath(__file__))[0], "libfastllm_tools.dylib"))
else:
Expand Down

0 comments on commit 2aa2bdd

Please sign in to comment.