diff options
author | jlew <jlew.blackout@gmail.com> | 2010-08-22 03:20:32 (GMT) |
---|---|---|
committer | jlew <jlew.blackout@gmail.com> | 2010-08-22 03:26:23 (GMT) |
commit | 2c8627ff822445fdf3eb7ce784453c05ea636483 (patch) | |
tree | da68e508352fe27c15d48fe68dbe8340d249aa00 /MAFH2/MafhActivity.py | |
parent | 590b04ee75ff9b68da3037080b22cd0d77ec51dd (diff) |
Added setup.py, converted engine to a module
Diffstat (limited to 'MAFH2/MafhActivity.py')
-rwxr-xr-x | MAFH2/MafhActivity.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/MAFH2/MafhActivity.py b/MAFH2/MafhActivity.py index 752c21a..e32b464 100755 --- a/MAFH2/MafhActivity.py +++ b/MAFH2/MafhActivity.py @@ -1,5 +1,15 @@ #!/usr/bin/env python -from fortuneengine.GameEngine import GameEngine + +try: + from fortuneengine.GameEngine import GameEngine +except: + # Target system is an xo, so we may not have the module + # installed, so we want to load the one in our folder + print "Using forutune engine from path" + import sys + sys.path.append( 'fortuneengine' ) + from fortuneengine.GameEngine import GameEngine + from MafhGameMenu import GameMenuHolder from constants import MENU_PATH, FMC_PATH, TOUR_PATH |