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

Needs remove_import_hooks #270

Open
silverv opened this issue Jan 23, 2023 · 1 comment
Open

Needs remove_import_hooks #270

silverv opened this issue Jan 23, 2023 · 1 comment

Comments

@silverv
Copy link
Contributor

silverv commented Jan 23, 2023

It should do something like this:

for meta_path in sys.meta_path.copy():
    if isinstance(meta_path, DsdlMetaFinder):
        sys.meta_path.remove(meta_path)

It should be available in the __init__.py file in the pycyphal.dsdl module

@pavel-kirienko
Copy link
Member

Also, install_import_hook needs to be renamed into add_import_hook and the old name should be deprecated. The docs need to make it clear that the function does not modify the existing import hooks.

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

3 participants