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 | 9ee0600524218d47ce2faa9b122a8e2b498e9b66 (patch) | |
tree | 06678a02f28e62a39b2c61fb576468afc335f634 | |
parent | 3255093451d5828dd3e2b3a0132858a296ee4777 (diff) |
vba - separate config
-rw-r--r-- | extras/vba.py | 13 | ||||
-rw-r--r-- | extras/vba_config.py | 15 |
2 files changed, 18 insertions, 10 deletions
diff --git a/extras/vba.py b/extras/vba.py index 3a1a97a2e..8ed0d7b5a 100644 --- a/extras/vba.py +++ b/extras/vba.py @@ -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(): """ diff --git a/extras/vba_config.py b/extras/vba_config.py new file mode 100644 index 000000000..8377c8818 --- /dev/null +++ b/extras/vba_config.py @@ -0,0 +1,15 @@ +#!/usr/bin/jython +# -*- encoding: utf-8 -*- +import os + +# by default we assume the user has things in their $HOME +home = os.path.expanduser("~") # or System.getProperty("user.home") + +# 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") |