From da333d8a85d59afdf7e3eebe77dc35bc00603c1e Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 21 Dec 2023 13:09:12 +0100 Subject: [PATCH] Fix incorrect use of platform-specific path separator --- docs/autogen_rst.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/autogen_rst.py b/docs/autogen_rst.py index a8b4888..d3d4f08 100644 --- a/docs/autogen_rst.py +++ b/docs/autogen_rst.py @@ -72,7 +72,7 @@ def make_rst(src_root, rst_root, clean=False, overwrite=False, package_prefix="" files_in_dir = os.listdir(src_root) module_names = [f[:-3] for f in files_in_dir if f.endswith(".py") and not f.startswith("_")] subdir_refs = [ - os.path.join(f, "index") + f"{f}/index" for f in files_in_dir if os.path.isdir(os.path.join(src_root, f)) and not f.startswith("_") ] @@ -108,7 +108,7 @@ def make_rst(src_root, rst_root, clean=False, overwrite=False, package_prefix="" f[:-3] for f in files_in_dir if f.endswith(".py") and not f.startswith("_") ] subdir_refs = [ - os.path.join(f, "index") + f"{f}/index" for f in files_in_dir if os.path.isdir(os.path.join(root, dirname, f)) and not f.startswith("_") ]