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

Import plugins relative to the module #7576

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

deliangyang
Copy link
Contributor

@deliangyang deliangyang commented Nov 27, 2023

Fixes #7575

Changes proposed in this pull request:

  • Importing plugins from a user-specified installation directory of PIL

@deliangyang deliangyang changed the title fix: Importing plugins from a user-specified installation directory fix: Importing plugins from a user-specified installation directory of PIL Nov 27, 2023
@homm
Copy link
Member

homm commented Nov 27, 2023

What do you mean by "user-specified" directory? Looks like relative path

@deliangyang
Copy link
Contributor Author

deliangyang commented Nov 27, 2023

Yes.

src/PIL/Image.py Outdated Show resolved Hide resolved
src/PIL/Image.py Outdated Show resolved Hide resolved
src/PIL/Image.py Outdated Show resolved Hide resolved
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: Wrong path replacement

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: typo
src/PIL/Image.py Outdated Show resolved Hide resolved
src/PIL/Image.py Outdated Show resolved Hide resolved
@radarhere radarhere changed the title fix: Importing plugins from a user-specified installation directory of PIL Import plugins relative to the module Dec 9, 2023
@radarhere radarhere merged commit ac1f10f into python-pillow:main Dec 14, 2023
56 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.

PIL.UnidentifiedImageError: cannot identify image file (Custom installation in other directories)
4 participants