Use sys.path.append, not insert

This commit is contained in:
Marco Pesenti Gritti 2007-04-15 12:26:50 +02:00
parent f78b23cf82
commit d49b0ed6fb
6 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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...')

View File

@ -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:

View File

@ -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)