diff --git a/tools/python/dlib/__init__.py.in b/tools/python/dlib/__init__.py.in index 1fbc6ab62..554a169f3 100644 --- a/tools/python/dlib/__init__.py.in +++ b/tools/python/dlib/__init__.py.in @@ -8,7 +8,7 @@ def add_lib_to_dll_path(path): """ try: import os - os.add_dll_directory(os.path.dirname(path)) + os.add_dll_directory(os.path.join(os.path.dirname(path), '../../bin')) except (AttributeError,KeyError): pass