Skip to content
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

Fix for Incorrect sys.path Sanitization Logic for Linked Directories #168

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

MrFlynn
Copy link
Contributor

@MrFlynn MrFlynn commented Nov 9, 2023

Resolves #167.

This change now accounts for the interpreter being launched from a linked directory by calling .resolve() on existing entries in sys.path.

@MrFlynn
Copy link
Contributor Author

MrFlynn commented Nov 14, 2023

Looks like the code for the unit test needed to be adjusted a little bit. This commit should fix it.

This change now accounts for the interpreter being launched from a
linked directory by calling `.resolve()` on existing entries in
`sys.path`.
This changes the test to properly capitalize drive letters and
introduces a new path separator variable that should resolve any
platform-specific path checking in this unit test.
@dwoz dwoz merged commit 2c5cb62 into saltstack:main Feb 16, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sys.path Sanitizing Breaks When Relenv is Within a Symlinked Directory
2 participants