uranusjr commented on code in PR #31653:
URL: https://github.com/apache/airflow/pull/31653#discussion_r1212786521
##########
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]
Review Comment:
I was thinking if `airflow_sources = Path(__file__).parents[2].resolve()` is
better, but it probably does not matter either way sicne we control the
`scripts/tools` directory and there’s very unlikely any non-regular entries
(e.g. symlinks).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]