From 098a8db837b48f2aa5c0503e803a9ea9cbd7834c Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sat, 17 Dec 2016 21:09:28 +0100 Subject: [PATCH] Whoops, forgot filename extensions. --- rsi/rsi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsi/rsi.py b/rsi/rsi.py index 4a8e0ab..f8ba526 100644 --- a/rsi/rsi.py +++ b/rsi/rsi.py @@ -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]} @@ -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]