Skip to content

Handle bad paths in sys.path - #2383

Merged
filmor merged 1 commit into
pythonnet:masterfrom
losttech:bugs/sys.path-invalid
May 11, 2024
Merged

filmor merged 1 commit into
pythonnet:masterfrom
losttech:bugs/sys.path-invalid

Conversation

@lostmsu

@lostmsu lostmsu commented May 10, 2024

Copy link
Copy Markdown
Member

What does this muthaf*ckin' implement/fix? Explain your changes.

User can add arbitrary strings to sys.path. When we probe for assemblies in sys.path the ones that were not valid paths caused the motherf*ckin' probing to fail, never reaching the valid ones that actually had the desired assembly.

This muthaf*ckin' change handles these cases by generating a warning and continuing to probe in other directories.

Does this muthaf*ckin' close any currently open issues?

fixes #2376

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an muthaf*ckin' enhancement PR, please create docs and at best an example
  • Updated the CHANGELOG

@lostmsu
lostmsu force-pushed the bugs/sys.path-invalid branch 3 times, most recently from 3b2958b to eef9619 Compare May 10, 2024 22:23
@lostmsu
lostmsu force-pushed the bugs/sys.path-invalid branch from eef9619 to eb61851 Compare May 10, 2024 22:32
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

System.ArgumentException: Illegal characters in path

2 participants