fix(code): Get data dirs relative to project dir
This commit is contained in:
parent
ad71859ded
commit
c1eccee426
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
from pathlib import Path
|
||||
import os
|
||||
import re
|
||||
## standard imports
|
||||
from IPython.core.display import Markdown as md
|
||||
|
@ -11,7 +12,8 @@ import bibtexparser
|
|||
|
||||
sns.set_style("whitegrid")
|
||||
|
||||
DATA_DIR=Path("./02-data")
|
||||
PROJECT_DIR=Path(os.getenv("QUARTO_PROJECT_DIR", "."))
|
||||
DATA_DIR=PROJECT_DIR.joinpath("02-data")
|
||||
RAW_DATA=DATA_DIR.joinpath("raw")
|
||||
WORKING_DATA=DATA_DIR.joinpath("intermediate")
|
||||
PROCESSED_DATA=DATA_DIR.joinpath("processed")
|
||||
|
|
Loading…
Reference in a new issue