Skip to content

Commit 32ec191

Browse files
committed
chore: use abs path
1 parent 581988c commit 32ec191

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def load_mf_config() -> MfCliConfig:
4040
"""
4141
load_dotenv()
4242

43-
project_dir = os.environ.get("DBT_PROJECT_DIR")
44-
profiles_dir = os.environ.get("DBT_PROFILES_DIR", os.path.expanduser("~/.dbt"))
43+
project_dir = os.path.abspath(os.environ.get("DBT_PROJECT_DIR")) if os.environ.get("DBT_PROJECT_DIR") else None
44+
profiles_dir = os.path.abspath(os.environ.get("DBT_PROFILES_DIR", os.path.expanduser("~/.dbt")))
4545
mf_path = os.environ.get("MF_PATH", "mf")
4646
tmp_dir = os.environ.get("MF_TMP_DIR", os.path.join(os.path.expanduser("~/.dbt"), "metricflow"))
4747

src/tools/metricflow/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def run_mf_command(command: list[str], config: MfCliConfig) -> tuple[str, str]:
3939
# Set up environment with DBT_PROFILES_DIR
4040
mf_env = os.environ.copy()
4141
mf_env["DBT_PROFILES_DIR"] = config.profiles_dir
42-
logger.debug(mf_env)
4342

4443
process = subprocess.Popen( # nosec B603
4544
args=[config.mf_path, *full_command],

0 commit comments

Comments
 (0)