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