From 27245e314a5d9069e246b322eb387642a8835f95 Mon Sep 17 00:00:00 2001 From: Zane Selvans Date: Wed, 22 Nov 2023 21:36:30 -0600 Subject: [PATCH] Use already set PUDL_INPUT/PUDL_OUTPU envvars. --- docs/conf.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 82583f8e28..6721aec6c8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,14 +20,10 @@ DOCS_DIR = Path(__file__).parent.resolve() if os.environ.get("READTHEDOCS"): - if not os.environ["PUDL_INPUT"]: - pudl_input = DOCS_DIR.parent / "pudl-work/input" - pudl_input.mkdir(parents=True, exist_ok=True) - os.environ["PUDL_INPUT"] = str(pudl_input) - if not os.environ["PUDL_OUTPUT"]: - pudl_output = DOCS_DIR.parent / "pudl-work/output" - pudl_output.mkdir(parents=True, exist_ok=True) - os.environ["PUDL_OUTPUT"] = str(pudl_output) + pudl_input = Path(os.environ["PUDL_INPUT"]) + pudl_input.mkdir(parents=True, exist_ok=True) + pudl_output = Path(os.environ["PUDL_OUTPUT"]) + pudl_output.mkdir(parents=True, exist_ok=True) # -- Path setup -------------------------------------------------------------- # We are building and installing the pudl package in order to get access to