Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions netmiko/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down