Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-15 10:26:50 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-15 10:26:50 (GMT)
commitd49b0ed6fb6f083d62d205c651aced3c0cf50095 (patch)
tree99a8984824c9078982ac0aa5a51abacc94ab8ef5
parentf78b23cf82215a7fa3085bd961f2dda59318e861 (diff)
Use sys.path.append, not insert
-rw-r--r--.gitignore1
-rwxr-xr-xservices/clipboard/sugar-clipboard2
-rwxr-xr-xservices/console/sugar-console2
-rwxr-xr-xservices/datastore/sugar-data-store2
-rwxr-xr-xservices/presence/sugar-presence-service2
-rw-r--r--sugar/activity/activityfactoryservice.py2
6 files changed, 6 insertions, 5 deletions
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)