vba - separate config

This commit is contained in:
Bryan Bishop 2013-03-01 22:45:30 -06:00
parent 3255093451
commit 9ee0600524
2 changed files with 18 additions and 10 deletions

View File

@ -102,17 +102,10 @@ import com.aurellem.gb.Gb as Gb
# load the vba-clojure library # load the vba-clojure library
Gb.loadVBA() Gb.loadVBA()
# by default we assume the user has things in their $HOME from vba_config import *
home = os.path.expanduser("~") # or System.getProperty("user.home")
# and that the pokecrystal project folder is in there somewhere if not os.path.exists(rom_path):
project_path = os.path.join(home, os.path.join("code", "pokecrystal")) raise Exception("rom_path is not configured properly; edit vba_config.py?")
# 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")
def _check_java_library_path(): def _check_java_library_path():
""" """

15
extras/vba_config.py Normal file
View File

@ -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")