Skip to content

Commit

Permalink
satisfy mypy and block linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-dkrz committed May 13, 2024
1 parent 760089b commit 21c91d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/evaluation_system/misc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def __init__(
):
self.default_file = default_file

def __repr__(self) -> str:
return self.__str__()

def __fspath__(self) -> str:
return os.environ.get(self._env, self.default_file)

def __repr__(self) -> str:
return self.__fspath__()
2 changes: 1 addition & 1 deletion src/evaluation_system/misc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def reloadConfiguration(config_file: Union[str, Path, None] = None) -> None:
}

config_file = config_file or os.environ.get(
"EVALUATION_SYSTEM_CONFIG_FILE", CONFIG_FILE
"EVALUATION_SYSTEM_CONFIG_FILE", str(CONFIG_FILE)
)
log.debug("Loading configuration file from: %s" % config_file)
if config_file and os.path.isfile(config_file):
Expand Down

0 comments on commit 21c91d2

Please sign in to comment.