From 1c8d33957701be6617210c03c196f44a777ec492 Mon Sep 17 00:00:00 2001 From: abby wolf Date: Thu, 23 Feb 2023 15:36:19 -0600 Subject: [PATCH] Fix documentation paths --- .github/workflows/scripts/updateUSERGUIDE-Cordio.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scripts/updateUSERGUIDE-Cordio.py b/.github/workflows/scripts/updateUSERGUIDE-Cordio.py index 51b0eacf7fb..5ac1cc13183 100644 --- a/.github/workflows/scripts/updateUSERGUIDE-Cordio.py +++ b/.github/workflows/scripts/updateUSERGUIDE-Cordio.py @@ -3,16 +3,14 @@ TEMPLATE = "- [%s](%s/%s)\n" -here = Path.cwd() -repo = here.parent.parent +repo = Path.cwd().parent.parent cordio_docs_dir = repo / "Libraries" / "Cordio" / "docs" platform_docs_dir = repo / "Libraries" / "Cordio" / "platform" / "Documentation" -userguide_dir = repo / "Documentation" cordio_doc_files = [f for f in listdir(cordio_docs_dir) if f.endswith('.md')] platform_doc_files = [f for f in listdir(platform_docs_dir) if f.endswith('.pdf')] -with open(userguide_dir / "USERGUIDE.md", 'r') as f: +with open(repo / "USERGUIDE.md", 'r') as f: lines = f.readlines() idx = 0 @@ -70,5 +68,5 @@ content = "".join(lines) - with open(userguide_dir / "USERGUIDE.md", 'w') as f: + with open(repo / "USERGUIDE.md", 'w') as f: f.write(content)