Skip to content

Small bugs in robot.utils.Importer #5432

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

Closed
pekkaklarck opened this issue May 15, 2025 · 0 comments
Closed

Small bugs in robot.utils.Importer #5432

pekkaklarck opened this issue May 15, 2025 · 0 comments

Comments

@pekkaklarck
Copy link
Member

There are two bugs in robot.utils.Importer. Neither of them affect usage with Robot, but can be encountered if the Importer is used programmatically:

  1. Using it with relative Path objects fails with a TypeError. With strings paths must be absolute to reliably separate paths from modules and that cannot be changed. We could also explicitly reject relative Path objects, but because we know they are paths, we can as well accept them.

  2. Using Importer without a logger failed with an AttributeError if a module was removed from sys.modules as part of the importing process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant