From 21f43ba8771372614f11adb1a7c22e4b0d3bba8a Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Fri, 13 Oct 2023 19:42:14 -0400 Subject: [PATCH] chore: Use getenv() instead of environ.get() --- extension_explorer/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension_explorer/util.py b/extension_explorer/util.py index e4a969707..e4a6c4548 100644 --- a/extension_explorer/util.py +++ b/extension_explorer/util.py @@ -51,8 +51,8 @@ def get_extension_explorer_data_filename(): Returns the data file's path. Set it with the ``EXTENSION_EXPLORER_DATA_FILENAME`` environment variable (default: ``extension_explorer/data/extensions.json``). """ - if os.environ.get('EXTENSION_EXPLORER_DATA_FILENAME'): - return os.environ.get('EXTENSION_EXPLORER_DATA_FILENAME') + if os.getenv('EXTENSION_EXPLORER_DATA_FILENAME'): + return os.getenv('EXTENSION_EXPLORER_DATA_FILENAME') return os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', 'extensions.json')