From d49b0ed6fb6f083d62d205c651aced3c0cf50095 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 15 Apr 2007 10:26:50 +0000 Subject: Use sys.path.append, not insert --- diff --git a/.gitignore b/.gitignore index fb168b1..6e3a9e5 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ services/clipboard/org.laptop.Clipboard.service services/console/org.laptop.sugar.Console.service services/presence/org.laptop.Sugar.Presence.service bin/sugar +shell/extensions/_extensions.c diff --git a/services/clipboard/sugar-clipboard b/services/clipboard/sugar-clipboard index 9ee32e7..f9dcfb3 100755 --- a/services/clipboard/sugar-clipboard +++ b/services/clipboard/sugar-clipboard @@ -32,7 +32,7 @@ import dbus.glib from sugar import env -sys.path.insert(0, env.get_service_path('clipboard')) +sys.path.append(env.get_service_path('clipboard')) from clipboardservice import ClipboardService diff --git a/services/console/sugar-console b/services/console/sugar-console index d4d7af0..af709a6 100755 --- a/services/console/sugar-console +++ b/services/console/sugar-console @@ -7,6 +7,6 @@ import os import sys from sugar import env -sys.path.insert(0, env.get_service_path('console')) +sys.path.append(env.get_service_path('console')) import console diff --git a/services/datastore/sugar-data-store b/services/datastore/sugar-data-store index 003e273..eb325f2 100755 --- a/services/datastore/sugar-data-store +++ b/services/datastore/sugar-data-store @@ -24,7 +24,7 @@ import logging from sugar import logger from sugar import env -sys.path.insert(0, env.get_service_path('datastore')) +sys.path.append(env.get_service_path('datastore')) logger.start('data-store') logging.info('Starting the data store...') diff --git a/services/presence/sugar-presence-service b/services/presence/sugar-presence-service index bba32b5..7eec696 100755 --- a/services/presence/sugar-presence-service +++ b/services/presence/sugar-presence-service @@ -24,7 +24,7 @@ import os from sugar import logger from sugar import env -sys.path.insert(0, env.get_service_path('presence')) +sys.path.append(env.get_service_path('presence')) test=0 if len(sys.argv) > 1: diff --git a/sugar/activity/activityfactoryservice.py b/sugar/activity/activityfactoryservice.py index 5dcedb3..ee98f51 100644 --- a/sugar/activity/activityfactoryservice.py +++ b/sugar/activity/activityfactoryservice.py @@ -140,7 +140,7 @@ def run_with_args(args): run(options.bundle_path) def run(bundle_path): - sys.path.insert(0, bundle_path) + sys.path.append(bundle_path) bundle = Bundle(bundle_path) -- cgit v0.9.1