[Sugar-devel] [PATCH sugar-toolkit-gtk3] Deprecate env.is_emulator

Daniel Narvaez dwnarvaez at gmail.com
Sat Dec 15 18:26:00 EST 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

We are not providing an emulator script with sugar anymore and
anyway special casing should not be necessary. Even less to
provide a way to do it in our public API.
---
 src/sugar3/env.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sugar3/env.py b/src/sugar3/env.py
index e681f4f..d2ad8b6 100644
--- a/src/sugar3/env.py
+++ b/src/sugar3/env.py
@@ -22,9 +22,9 @@ STABLE.
 
 import os
 
-
+# DEPRECATED
 def is_emulator():
-    return os.environ.get('SUGAR_EMULATOR', 'no') == 'yes'
+    return False
 
 
 def get_profile_path(path=None):
-- 
1.7.10.4



More information about the Sugar-devel mailing list