sugar-toolkit-gtk3/services/console/sugar-console

21 lines
399 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import os
import sys
from sugar import env
from sugar import util
2007-04-15 12:26:50 +02:00
sys.path.append(env.get_service_path('console'))
# change to the user's home directory if it is set
# root if not
os.chdir(os.environ.get('HOME', '/'))
#set the process title so it shows up as sugar-console not python
util.set_proc_title('sugar-console')
import console