From dc5dd0b3f408d6b9f5fe8f0b6fea3e619dcae963 Mon Sep 17 00:00:00 2001 From: Nick Papior Date: Sat, 10 Aug 2024 08:56:39 +0200 Subject: [PATCH] another default Signed-off-by: Nick Papior --- docs/conf.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f624c236f..b400b8291 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,8 @@ if on_rtd: os.environ["SISL_NUM_PROCS"] = "1" os.environ["SISL_VIZ_NUM_PROCS"] = "1" + +if "SISL_FILES_TESTS" not in os.environ: os.environ["SISL_FILES_TESTS"] = str(_root / "files" / "tests") @@ -55,9 +57,10 @@ sisl_files_tests = sisl.get_environ_variable("SISL_FILES_TESTS") print(f"SISL_FILES_TESTS: {sisl_files_tests}") print(" is directory: ", sisl_files_tests.is_dir()) -print(" content:") -for _child in sisl_files_tests.iterdir(): - print(f" {_child}") +if sisl_files_tests.is_dir(): + print(" content:") + for _child in sisl_files_tests.iterdir(): + print(f" {_child}") # General information about the project.