Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Whoops, forgot filename extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Dec 17, 2016
1 parent b3ab4c5 commit 098a8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsi/rsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def write(self, path: Union[str, Path]) -> None:
path.mkdir()

# Write metadata json file.
metapath = path.joinpath("meta.yml") # type: Path
metapath = path.joinpath("meta.json") # type: Path
metajson = {} # type: Dict[str, Any]
metajson["version"] = RSI_LATEST_COMPATIBLE
metajson["size"] = {"x": self.size[0], "y": self.size[1]}
Expand Down Expand Up @@ -102,7 +102,7 @@ def open(cls: Type[T], path: Union[str, Path]) -> T:
if not path.is_dir():
raise ValueError("Non-directory passed to open().")

metapath = path.joinpath("meta.yml") # type: Path
metapath = path.joinpath("meta.json") # type: Path
with metapath.open() as f:
meta = json.loads(f.read()) # type: Dict[str, Any]

Expand Down

0 comments on commit 098a8db

Please sign in to comment.