diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-10 21:18:30 -0700 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-10 21:18:30 -0700 |
commit | 50341bae50b4318800dcea5694e95b239ed8fbb0 (patch) | |
tree | d2060ae537a36cc649b22785c46915dd1c9813ca /pokemontools/config.py | |
parent | cb65c31968305b0572ca5452291afcf058cef3a2 (diff) | |
parent | 42c7b0348386fdd0d3fc3b64ad81ee8ee7779824 (diff) |
Merge pull request #21 from kanzure/vba-automation
Start moving away from jvm/jython.
Diffstat (limited to 'pokemontools/config.py')
-rw-r--r-- | pokemontools/config.py | 8 |
1 files changed, 8 insertions, 0 deletions
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, |