Some activity registry fixes. Thanks cjb.

This commit is contained in:
Tomeu Vizoso
2007-06-13 11:50:05 +02:00
parent ceff7d71a2
commit b320ea36cf
4 changed files with 13 additions and 6 deletions
+2 -3
View File
@@ -20,7 +20,7 @@ import sys
import os
from ConfigParser import ConfigParser
from sugar.activity import ActivityRegistry
from sugar import activity
from sugar import env
# Setup the environment so that we run inside the Sugar shell
@@ -51,8 +51,7 @@ def print_help(self):
activity_info = None
if len(sys.argv) > 1:
registry = ActivityRegistry()
activities = registry.find_activity(sys.argv[1])
activities = activity.get_registry().find_activity(sys.argv[1])
if len(activities) > 0:
activity_info = activities[0]