diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-22 12:01:53 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-22 12:01:53 (GMT) |
commit | 3e51b086df1221a469bc98842fe779c47f4f2514 (patch) | |
tree | b237039d9682bf7d6387c84c5ccc1f4a354089e1 /sugar/env.py | |
parent | 49073039e94685f697389712dbed35f5d39e4270 (diff) |
Create a conf module. Move activity registry out of the shell
(should only be graphical) into it.
Diffstat (limited to 'sugar/env.py')
-rw-r--r-- | sugar/env.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sugar/env.py b/sugar/env.py index 66299bf..0caf198 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -8,6 +8,7 @@ except ImportError: from sugar.__installed__ import * import sugar.setup +import sugar.conf def add_to_python_path(path): sys.path.insert(0, path) @@ -40,6 +41,9 @@ def setup(): sugar.setup.write_service('org.laptop.Presence', bin, get_services_dir()) + registry = sugar.conf.get_activity_registry() + registry.scan_directory(get_activities_dir()) + def get_user_dir(): if os.environ.has_key('SUGAR_NICK_NAME'): nick = get_nick_name() |