From 7e942ba9890483f659bf191ec979a77acb9f601d Mon Sep 17 00:00:00 2001 From: Ryan_Huang <44900829+DrRyanHuang@users.noreply.github.com> Date: Fri, 18 Feb 2022 21:50:55 +0800 Subject: [PATCH] Update __init__.py.in (#2515) --- tools/python/dlib/__init__.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/dlib/__init__.py.in b/tools/python/dlib/__init__.py.in index 554a169f3..4a289ed5e 100644 --- a/tools/python/dlib/__init__.py.in +++ b/tools/python/dlib/__init__.py.in @@ -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':