diff --git a/netmiko/utilities.py b/netmiko/utilities.py index a7196fff2..1954e0e96 100644 --- a/netmiko/utilities.py +++ b/netmiko/utilities.py @@ -319,9 +319,7 @@ def get_template_dir(_skip_ntc_package: bool = False) -> str: if _skip_ntc_package: raise ModuleNotFoundError() else: - with pkg_resources.path( - package="ntc_templates", resource="parse.py" - ) as posix_path: + with pkg_resources.path("ntc_templates", "parse.py") as posix_path: # Example: /opt/venv/netmiko/lib/python3.9/site-packages/ntc_templates/templates template_dir = str(posix_path.parent.joinpath("templates")) # This is for Netmiko automated testing