Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/console/sugar-console
blob: 357b7fee75962b0ede78662cb8f37817bbfea7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

import pygtk
pygtk.require('2.0')

import os
import sys
from sugar import env 
from sugar import util

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