comparison 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
comparison
equal deleted inserted replaced
439:cfc7c384603b 440:3a6441d9e01c
24 # #################################################################### 24 # ####################################################################
25 # This is the rio de hola client for FIFE. 25 # This is the rio de hola client for FIFE.
26 26
27 import sys, os, re, math, random, shutil 27 import sys, os, re, math, random, shutil
28 28
29 fife_path = os.path.join('..','..','engine','python')
30 if os.path.isdir(fife_path) and fife_path not in sys.path:
31 sys.path.insert(0,fife_path)
32
29 from fife import fife 33 from fife import fife
34 print "Using the FIFE python module found here: ", os.path.dirname(fife.__file__)
35
30 from fife.extensions import * 36 from fife.extensions import *
31 from scripts import world 37 from scripts import world
32 from scripts.common import eventlistenerbase 38 from scripts.common import eventlistenerbase
33 from fife.extensions.basicapplication import ApplicationBase 39 from fife.extensions.basicapplication import ApplicationBase
34 from fife.extensions import pychan 40 from fife.extensions import pychan