summaryrefslogtreecommitdiff
path: root/pokemontools/config.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-10 21:18:30 -0700
committerBryan Bishop <kanzure@gmail.com>2013-09-10 21:18:30 -0700
commit50341bae50b4318800dcea5694e95b239ed8fbb0 (patch)
treed2060ae537a36cc649b22785c46915dd1c9813ca /pokemontools/config.py
parentcb65c31968305b0572ca5452291afcf058cef3a2 (diff)
parent42c7b0348386fdd0d3fc3b64ad81ee8ee7779824 (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.py8
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,