pycyphal icon indicating copy to clipboard operation
pycyphal copied to clipboard

Needs remove_import_hooks

Open silverv opened this issue 2 years ago • 1 comments

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

silverv avatar Jan 23 '23 19:01 silverv

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.

pavel-kirienko avatar Jan 05 '24 11:01 pavel-kirienko