diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 22:45:30 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 22:45:30 -0600 |
commit | ef2813c399a13553df16542d863a50623c7c6746 (patch) | |
tree | 3c72e07c3ee9338bd5405f48fae86d97b4870475 /vba.py | |
parent | 641f3dafbf5529f941d988a5ac746b578108ed4b (diff) |
vba - separate config
original-commit-id: 9ee0600524218d47ce2faa9b122a8e2b498e9b66
Diffstat (limited to 'vba.py')
-rw-r--r-- | vba.py | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -102,17 +102,10 @@ import com.aurellem.gb.Gb as Gb # load the vba-clojure library Gb.loadVBA() -# by default we assume the user has things in their $HOME -home = os.path.expanduser("~") # or System.getProperty("user.home") +from vba_config import * -# and that the pokecrystal project folder is in there somewhere -project_path = os.path.join(home, os.path.join("code", "pokecrystal")) - -# save states are in ~/code/pokecrystal/save-states/ -save_state_path = os.path.join(project_path, "save-states") - -# where is your rom? -rom_path = os.path.join(project_path, "baserom.gbc") +if not os.path.exists(rom_path): + raise Exception("rom_path is not configured properly; edit vba_config.py?") def _check_java_library_path(): """ |