Skip to content

Commit

Permalink
Merge pull request #80 from ManuelHu/patch-1
Browse files Browse the repository at this point in the history
fix empty-string LEGEND_METADATA env var
  • Loading branch information
gipert authored Feb 1, 2025
2 parents 0481750 + 777d344 commit e8973ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/legendmeta/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ def __init__(self, path: str | None = None, **kwargs) -> None:
if isinstance(path, str):
self.__repo_path__ = path
else:
self.__repo_path__ = os.getenv(
"LEGEND_METADATA",
str(Path(gettempdir()) / ("legend-metadata-" + getuser())),
self.__repo_path__ = os.getenv("LEGEND_METADATA", "")

if self.__repo_path__ == "":
self.__repo_path__ = str(
Path(gettempdir()) / ("legend-metadata-" + getuser())
)

# self.__repo__: Repo =
Expand Down

0 comments on commit e8973ba

Please sign in to comment.