sugar-toolkit-gtk3/sugar/sugar
2006-05-16 16:32:08 -04:00

21 lines
455 B
Python
Executable File

#!/usr/bin/python
import sys
import os
basedir = os.path.dirname(os.path.dirname(__file__))
if os.path.isfile(os.path.join(basedir, 'sugar', '__uninstalled__.py')):
if basedir == '':
print "Running sugar from current directory..."
else:
print "Running sugar from " + basedir + " ..."
sys.path.append(basedir)
os.environ['PYTHONPATH'] = basedir
else:
print "Running the installed sugar..."
from sugar.session import session
session.start()