diff demos/rio_de_hola/run.py @ 440:3a6441d9e01c

The demos and editor now look for a local copy of FIFE before trying to import the installed version of FIFE. This is to ease development and not force developers to install FIFE every time they make changes to core and/or the extensions. fixes[t:453]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 02 Mar 2010 15:05:30 +0000
parents 70697641fca3
children e29853880e87
line wrap: on
line diff
--- a/demos/rio_de_hola/run.py	Tue Mar 02 12:05:35 2010 +0000
+++ b/demos/rio_de_hola/run.py	Tue Mar 02 15:05:30 2010 +0000
@@ -26,7 +26,13 @@
 
 import sys, os, re, math, random, shutil
 
+fife_path = os.path.join('..','..','engine','python')
+if os.path.isdir(fife_path) and fife_path not in sys.path:
+	sys.path.insert(0,fife_path)
+
 from fife import fife
+print "Using the FIFE python module found here: ", os.path.dirname(fife.__file__)
+
 from fife.extensions import *
 from scripts import world
 from scripts.common import eventlistenerbase