--- a/bindings/bindings_generator/python_generator.py
+++ b/bindings/bindings_generator/python_generator.py
@@ -120,8 +120,7 @@
         
         string += indent + 'try:\n'
         string += indent + '    if sys.platform == \'win32\':\n'
-        string += indent + '        name = ctypes.util.find_library("%s")\n' % self.libname
-        string += indent + '        lib = ctypes.cdll.LoadLibrary(name)\n'
+        string += indent + '        lib = ctypes.cdll.LoadLibrary("lib%s.dll")\n' % self.libname
         string += indent + '    elif sys.platform == \'darwin\':\n'
         string += indent + '        lib = ctypes.CDLL("lib%s.dylib")\n' % self.libname
         string += indent + '    else:\n'
