Skip to content

Commit

Permalink
chore: Use getenv() instead of environ.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 13, 2023
1 parent e0c1f84 commit 21f43ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension_explorer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down

0 comments on commit 21f43ba

Please sign in to comment.