You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2024/02/27 13:16:36 UTC

(airflow) branch main updated: Wrap AIRFLOW_HOME env var lookup in Path (#37733)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c70aaa5bac Wrap AIRFLOW_HOME env var lookup in Path (#37733)
c70aaa5bac is described below

commit c70aaa5bac6d9fc740bbe5eca2f3be0dc5abd09c
Author: Dylan Rajguru <44...@users.noreply.github.com>
AuthorDate: Tue Feb 27 05:16:25 2024 -0800

    Wrap AIRFLOW_HOME env var lookup in Path (#37733)
---
 dev/breeze/src/airflow_breeze/utils/path_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/breeze/src/airflow_breeze/utils/path_utils.py b/dev/breeze/src/airflow_breeze/utils/path_utils.py
index bafe7be64e..549dfdb2ec 100644
--- a/dev/breeze/src/airflow_breeze/utils/path_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/path_utils.py
@@ -318,7 +318,7 @@ DOCKER_CONTEXT_DIR = AIRFLOW_SOURCES_ROOT / "docker-context-files"
 CACHE_TMP_FILE_DIR = tempfile.TemporaryDirectory()
 OUTPUT_LOG = Path(CACHE_TMP_FILE_DIR.name, "out.log")
 BREEZE_SOURCES_ROOT = AIRFLOW_SOURCES_ROOT / "dev" / "breeze"
-AIRFLOW_HOME_DIR = os.environ.get("AIRFLOW_HOME", Path.home() / "airflow")
+AIRFLOW_HOME_DIR = Path(os.environ.get("AIRFLOW_HOME", Path.home() / "airflow"))
 
 
 def create_volume_if_missing(volume_name: str):