diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-23 03:29:23 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-23 03:29:23 (GMT) |
commit | 1023a3d4abe2b18420db4c57d879db4fc412bf6a (patch) | |
tree | 2ee00c258c862cfdc4e02e47d775367ece3e9abe /olpcgames/canvas.py | |
parent | e06dda748d9a96ba6aa0d2207439003a9c40d95c (diff) |
imports in one line , updating activity.info
Diffstat (limited to 'olpcgames/canvas.py')
-rw-r--r-- | olpcgames/canvas.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/olpcgames/canvas.py b/olpcgames/canvas.py index 0874d2d..08d2b35 100644 --- a/olpcgames/canvas.py +++ b/olpcgames/canvas.py @@ -87,7 +87,7 @@ class PyGameCanvas(gtk.Layout): # Load the modules # NOTE: This is delayed because pygame.init() must come after the embedding is up if ':' not in app: - app += ':main' + app += ':main' mod_name, fn_name = app.split(':') mod = __import__(mod_name, globals(), locals(), []) fn = getattr(mod, fn_name) @@ -101,7 +101,8 @@ class PyGameCanvas(gtk.Layout): import olpcgames olpcgames.widget = olpcgames.WIDGET = self try: - import sugar.activity.activity,os + import sugar.activity.activity + import os except ImportError, err: log.info( """Running outside Sugar""" ) else: |