Skip to content

Commit

Permalink
Use already set PUDL_INPUT/PUDL_OUTPU envvars.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneselvans committed Nov 23, 2023
1 parent 798d1c2 commit 27245e3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27245e3

Please sign in to comment.