Handle bad paths in `sys.path` by lostmsu · Pull Request #2383 · pythonnet/pythonnet
Repository navigation
Handle bad paths in sys.path - #2383
Merged
filmor merged 1 commit into pythonnet:master from losttech:bugs/sys.path-invalid May 11, 2024
Merged
Handle bad paths in sys.path #2383
filmor merged 1 commit into
pythonnet:master from
losttech:bugs/sys.path-invalid
Conversation
lostmsu commented May 10, 2024
Copy link Copy Markdown
Member
What does this 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 probing to fail, never reaching the valid ones that actually had the desired assembly.
This change handles these cases by generating a warning and continuing to probe in other directories.
Does this 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 enhancement PR, please create docs and at best an example
- Updated the
CHANGELOG
3b2958b to
eef9619
Compare
May 10, 2024 22:23
handle bad paths in sys.path
eb61851
fixes pythonnet#2376lostmsu force-pushed the bugs/sys.path-invalid branch from
eef9619 to
eb61851
Compare
May 10, 2024 22:32 filmor approved these changes May 11, 2024
View reviewed changes
filmor merged commit
b112885
into
pythonnet : master
May 11, 2024
filmor
mentioned this pull request
Oct 11, 2024
AssemblyManager.FindAssemblyCandidates runs without GIL and crashes with "Attempted to read or write protected memory" unpredictably
#2481
Open
dependabot
Bot
mentioned this pull request Jan 16, 2026 Bump pythonnet from 3.0.3 to 3.0.5 mattemangia/Deep3DStudio#99 Closed Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment