From da80c910811e327e0493e8c6c2acce14f0ae7754 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 21 Aug 2006 19:37:55 +0200 Subject: [PATCH] Enable sugar emulator only if SUGAR_EMULATOR=yes is set --- shell/sugar | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/sugar b/shell/sugar index 9db77c7c..8108b26e 100755 --- a/shell/sugar +++ b/shell/sugar @@ -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