ansible-lint icon indicating copy to clipboard operation
ansible-lint copied to clipboard

don't inject CWD parent into PATH

Open garymm opened this issue 1 year ago • 1 comments

previously if own_location was set to "", then os.path.realpath("") resolves to CWD, and then if CWD/../ansible exists, CWD/.. was injected into PATH.

This doesn't seem desirable or necessary.

garymm avatar Apr 12 '24 19:04 garymm

An alternate fix for my issue would be to check if parent / "ansible" is executable before adding parent to the PATH. LMK if you prefer that fix.

garymm avatar Apr 12 '24 19:04 garymm