Use sys.path.append, not insert
This commit is contained in:
parent
f78b23cf82
commit
d49b0ed6fb
1
.gitignore
vendored
1
.gitignore
vendored
@ -54,3 +54,4 @@ services/clipboard/org.laptop.Clipboard.service
|
|||||||
services/console/org.laptop.sugar.Console.service
|
services/console/org.laptop.sugar.Console.service
|
||||||
services/presence/org.laptop.Sugar.Presence.service
|
services/presence/org.laptop.Sugar.Presence.service
|
||||||
bin/sugar
|
bin/sugar
|
||||||
|
shell/extensions/_extensions.c
|
||||||
|
@ -32,7 +32,7 @@ import dbus.glib
|
|||||||
|
|
||||||
from sugar import env
|
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
|
from clipboardservice import ClipboardService
|
||||||
|
|
||||||
|
@ -7,6 +7,6 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from sugar import env
|
from sugar import env
|
||||||
|
|
||||||
sys.path.insert(0, env.get_service_path('console'))
|
sys.path.append(env.get_service_path('console'))
|
||||||
|
|
||||||
import console
|
import console
|
||||||
|
@ -24,7 +24,7 @@ import logging
|
|||||||
from sugar import logger
|
from sugar import logger
|
||||||
from sugar import env
|
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')
|
logger.start('data-store')
|
||||||
logging.info('Starting the data store...')
|
logging.info('Starting the data store...')
|
||||||
|
@ -24,7 +24,7 @@ import os
|
|||||||
from sugar import logger
|
from sugar import logger
|
||||||
from sugar import env
|
from sugar import env
|
||||||
|
|
||||||
sys.path.insert(0, env.get_service_path('presence'))
|
sys.path.append(env.get_service_path('presence'))
|
||||||
|
|
||||||
test=0
|
test=0
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
|
@ -140,7 +140,7 @@ def run_with_args(args):
|
|||||||
run(options.bundle_path)
|
run(options.bundle_path)
|
||||||
|
|
||||||
def run(bundle_path):
|
def run(bundle_path):
|
||||||
sys.path.insert(0, bundle_path)
|
sys.path.append(bundle_path)
|
||||||
|
|
||||||
bundle = Bundle(bundle_path)
|
bundle = Bundle(bundle_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user