only add dll directory on windows

This commit is contained in:
Concedo 2023-09-13 18:45:54 +08:00
parent 1f20479af3
commit 3d50c6fe0b

View file

@ -167,6 +167,7 @@ def init_library():
abs_path = getabspath()
#add all potential paths
if os.name=='nt':
os.add_dll_directory(dir_path)
os.add_dll_directory(abs_path)
os.add_dll_directory(os.getcwd())