Skip to content

Commit

Permalink
Update utilities.py
Browse files Browse the repository at this point in the history
minor correction to the way arguments get passed to the pkg_resources.path() function
  • Loading branch information
MrVicknair authored Oct 23, 2024
1 parent eab1884 commit 8f0c62d
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit 8f0c62d

Please sign in to comment.