Update __init__.py.in (#2515)

This commit is contained in:
Ryan_Huang 2022-02-18 21:50:55 +08:00 committed by GitHub
parent 7be763d65e
commit 7e942ba989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ def add_lib_to_dll_path(path):
try:
import os
os.add_dll_directory(os.path.join(os.path.dirname(path), '../../bin'))
except (AttributeError,KeyError):
except (AttributeError,KeyError,FileNotFoundError):
pass
if '@DLIB_USE_CUDA@' == 'ON':