Skip to content

Conversation

@FliegenKLATSCH
Copy link
Contributor

If the PATH is not set up correctly and we are invoked via full path, it's likely that ansible itself is just next to us.
It's added at the end, so it's only the last resort, if nothing else could be found.

@FliegenKLATSCH FliegenKLATSCH requested a review from a team as a code owner November 19, 2023 20:01
@FliegenKLATSCH FliegenKLATSCH requested review from a team, cristianonicolai and shatakshiiii and removed request for a team November 19, 2023 20:01
Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will clearly not work as expected if linter is called as a python module as in this case argv[0] will be just python.

@FliegenKLATSCH
Copy link
Contributor Author

True, but in the worst case we add the path of python itself at the end, which usually should be there already?
Maybe I am overlooking something?

@ssbarnea
Copy link
Member

@FliegenKLATSCH Please make it report green on all jobs and I will accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants