diff --git a/generate_pydocs.py b/generate_pydocs.py
index 881018916222c94e38e9e24bfcc5a84915a5f378..1c2b01194d0d956451f8fbaf953465d300b4eaaf 100644
--- a/generate_pydocs.py
+++ b/generate_pydocs.py
@@ -13,6 +13,7 @@ import inspect
 import re
 
 sys.path.append('build/python-api-src')
+sys.path.append('build/python-api-src/Release')
 import library
 
 def update_pyi_with_docstrings(pyi_path):
@@ -75,5 +76,6 @@ def update_pyi_with_docstrings(pyi_path):
 
 
 # Path to the generated .pyi file
-pyi_file_path = 'build/python-api-src/library.pyi'
+#pyi_file_path = 'build/python-api-src/library.pyi'
+pyi_file_path = 'build/python-api-src/Release/library.pyi'
 update_pyi_with_docstrings(pyi_file_path)