From e88a4767e97796c2b78fda3ecd2c43b187aac059 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 9 Sep 2013 00:27:26 -0500 Subject: some config defaults taken from vba stuff --- pokemontools/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pokemontools/config.py b/pokemontools/config.py index 656fab0..cbf230c 100644 --- a/pokemontools/config.py +++ b/pokemontools/config.py @@ -31,6 +31,14 @@ class Config(object): if "path" not in self._config: self._config["path"] = os.getcwd() + # vba save states go into ./save-states/ + if "save_state_path" not in self._config: + self._config["save_state_path"] = os.path.join(self._config["path"], "save-states/") + + # assume rom is at ./baserom.gbc + if "rom" not in self._config: + self._config["rom_path"] = os.path.join(self._config["path"], "baserom.gbc") + def __getattr__(self, key): """ Grab the value from the class properties, then check the configuration, -- cgit v1.2.3