Add the root path of the services to python path, not services/.
Get rid of the now useless env.get_services_dir
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
|
||||
import os, sys
|
||||
import os
|
||||
import sys
|
||||
from sugar import env
|
||||
|
||||
sys.path.insert(0, env.get_services_dir())
|
||||
sys.path.insert(0, os.path.join(env.get_data_dir(), 'services/console'))
|
||||
|
||||
import console.console
|
||||
import console
|
||||
|
||||
Reference in New Issue
Block a user