Skip to content

Commit

Permalink
Replace pkg_resources with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed Jun 17, 2024
1 parent f4910fa commit 894884e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
"""
import platform
import sys
import pkg_resources
import importlib.metadata
print(f"Python version: {sys.version}")
print(f"OS version: {platform.system()} {platform.release()} ({platform.architecture()})")
va_version = pkg_resources.get_distribution("vision-agent").version
va_version = importlib.metadata.version("vision-agent")
print(f"Vision Agent version: {va_version}")"""
)
sys_versions = "\n".join(result.logs.stdout)
Expand Down

0 comments on commit 894884e

Please sign in to comment.