diff options
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 |