From d20f713c8167d451a0bbe72ffc9c9c170296461c Mon Sep 17 00:00:00 2001 From: betolink Date: Thu, 8 Feb 2024 21:13:57 -0600 Subject: [PATCH] reverting last commit, avoid importing the library --- earthaccess/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earthaccess/auth.py b/earthaccess/auth.py index 9f51ad92..8f1cb3e5 100644 --- a/earthaccess/auth.py +++ b/earthaccess/auth.py @@ -13,7 +13,7 @@ from .daac import DAACS try: - user_agent = f"earthaccess v{earthaccess.__version__}" + user_agent = f"earthaccess v{importlib.metadata.version('earthaccess')}" except importlib.metadata.PackageNotFoundError: user_agent = "earthaccess"