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':