From 93efb3ce9665929debb1bf3000d250568fcd787d Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Wed, 15 May 2024 15:40:54 -0700 Subject: [PATCH] changed import --- noxfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 5867703c8..4fd8a1c8a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -428,8 +428,9 @@ def docfx(session): # Customization: Add extra sections to the table of contents for the Standard vs Async clients import sys - sys.path.append(os.path.abspath(os.path.join("docs", "scripts"))) - from docs.scripts import patch_devsite_toc + # import local module at docs/scripts/patch_devsite_toc.py + sys.path.append(os.path.join("docs", "scripts")) + import patch_devsite_toc toc_path = os.path.join("_build", "html", "docfx_yaml", "toc.yml") custom_sections = [