Skip to content

BF: use inspect.getfile to check path of plugin entry points#6660

Merged
TEParsons merged 1 commit into
psychopy:devfrom
mh105:dev-ep-file-path
Jul 4, 2024
Merged

BF: use inspect.getfile to check path of plugin entry points#6660
TEParsons merged 1 commit into
psychopy:devfrom
mh105:dev-ep-file-path

Conversation

@mh105
Copy link
Copy Markdown
Contributor

@mh105 mh105 commented Jul 3, 2024

Fix a bug that got introduced in #6610 - I forgot to consider the use of entry-points for classes in addition to importing modules.

Classes require a different way from modules for checking the file path, as previously done correctly by @TEParsons using inspect.getfile(), which #6610 incorrectly removed. This BF adds that back.

@TEParsons TEParsons merged commit 5651bde into psychopy:dev Jul 4, 2024
@mh105 mh105 deleted the dev-ep-file-path branch July 5, 2024 08:19
@peircej peircej added the 🐞 bug Issue describes a bug (crash or error) or undefined behavior. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants