Merge pull request #1734 from darlanalves/env-docs-dir

feat: allow a docs directory coming from env
This commit is contained in:
Timothy Jaeryang Baek 2024-04-26 09:59:34 -07:00 committed by GitHub
commit ddf06329a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
# Docs DIR
####################################
DOCS_DIR = f"{DATA_DIR}/docs"
DOCS_DIR = os.getenv("DOCS_DIR", f"{DATA_DIR}/docs")
Path(DOCS_DIR).mkdir(parents=True, exist_ok=True)