You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by hu...@apache.org on 2023/06/01 13:07:44 UTC
[airflow] branch main updated: Fix deletion of Airflow source dir in virtualenv installation script (#31653)
This is an automated email from the ASF dual-hosted git repository.
husseinawala 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 4ebf1c814c Fix deletion of Airflow source dir in virtualenv installation script (#31653)
4ebf1c814c is described below
commit 4ebf1c814c6e382169db00493a897b11c680e72b
Author: Renze Post <re...@gmail.com>
AuthorDate: Thu Jun 1 15:07:36 2023 +0200
Fix deletion of Airflow source dir in virtualenv installation script (#31653)
* Fix deletion of Airflow source directory in virtualenv installation script
* Replace absolute() with resolve()
---
scripts/tools/initialize_virtualenv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/tools/initialize_virtualenv.py b/scripts/tools/initialize_virtualenv.py
index d85ea6caa2..e5e5633fdf 100755
--- a/scripts/tools/initialize_virtualenv.py
+++ b/scripts/tools/initialize_virtualenv.py
@@ -112,7 +112,7 @@ def main():
Setup local virtual environment.
"""
airflow_home_dir = Path(os.environ.get("AIRFLOW_HOME", Path.home() / "airflow"))
- airflow_sources = Path(__file__).parents[2]
+ airflow_sources = Path(__file__).resolve().parents[2]
if not check_if_in_virtualenv():
print(