Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Sep 29, 2024
1 parent ae23703 commit 5685bd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datasalad/settings/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def __init__(
var_prefix: str | None = None,
):
super().__init__()
self._var_prefix = var_prefix
self._var_prefix = var_prefix.upper() \
if os_name in ('os2', 'nt') else var_prefix

def reinit(self):
"""Does nothing"""
Expand All @@ -56,6 +57,7 @@ def load(self) -> None:
"""

def __getitem__(self, key: Hashable) -> Setting:
# TODO also support a mode where get_key_from_varname() is not implemented
matching = {
k: v
for k, v in environ.items()
Expand Down

0 comments on commit 5685bd9

Please sign in to comment.