-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Consolidate importing of os.path.* #34060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5f2b479 to
3c18b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| AIRFLOW_SOURCES_DIR = Path(__file__).resolve().parents[3] | |
| AIRFLOW_SOURCES_DIR = Path(__file__).parents[3].resolve() |
or
| AIRFLOW_SOURCES_DIR = Path(__file__).resolve().parents[3] | |
| AIRFLOW_SOURCES_DIR = Path(__file__).parents[3] |
since the original code seems to work without resolving anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 13 occurrences of resolve().parents in the repo. Should we fix them all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’d be awesome, although we can focus on the lines changed in this PR first.
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. That always bothered me :)
|
pending @uranusjr chaanges. |
3c18b8c to
970e36d
Compare
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> (cherry picked from commit 9079093)
No description provided.