Enable sugar emulator only if SUGAR_EMULATOR=yes is set

This commit is contained in:
Marco Pesenti Gritti 2006-08-21 19:37:55 +02:00
parent 7d6adc55a3
commit da80c91081

View File

@ -26,7 +26,8 @@ registry.scan_directory(env.get_activities_dir())
from session.Emulator import Emulator from session.Emulator import Emulator
# FIXE Don't run the emulator on the OLPC if os.environ.has_key('SUGAR_EMULATOR') and \
os.environ['SUGAR_EMULATOR'] == 'yes':
emulator = Emulator() emulator = Emulator()
emulator.start() emulator.start()