ref: a46a4b35a2fa3ceefb6a283480a4e6a9efe8424c
parent: 91b24953f615569d5130cb1ccceffa8149cc42c0
author: yenatch <[email protected]>
date: Thu Mar 7 18:39:21 EST 2013
vba - generalize project path in config
--- a/extras/vba_config.py
+++ b/extras/vba_config.py
@@ -2,13 +2,10 @@
# -*- 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")
+# by default we assume the user has vba in pokecrystal/extras
+project_path = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))
-# 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 states are in pokecrystal/save-states/
save_state_path = os.path.join(project_path, "save-states")
# where is your rom?