Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MAFH2/MafhActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'MAFH2/MafhActivity.py')
-rwxr-xr-xMAFH2/MafhActivity.py12
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