We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ab22b4 + 81b56bc commit 94e7899Copy full SHA for 94e7899
docs/source/conf.py
@@ -35,12 +35,12 @@
35
myst_enable_extensions = [
36
"attrs_block",
37
]
38
-base_dir = "/".join(os.getcwd().split("/")[:-2])
+base_dir = os.path.dirname(os.path.dirname(os.getcwd()))
39
+assets_dir = os.path.join(base_dir, "assets", "docstr")
40
doctest_global_setup = f"""
41
import os
-os.chdir("{base_dir}")
42
-if not os.path.exists("assets/docstr"):
43
- os.mkdir("assets/docstr")
+if not os.path.exists(r"{assets_dir}"):
+ os.mkdir(r"{assets_dir}")
44
"""
45
46
templates_path = ["_templates"]
0 commit comments