2006-08-04 15:54:28 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from sugar import setup
|
|
|
|
|
2006-10-06 21:08:18 +02:00
|
|
|
if len(sys.argv) > 2:
|
|
|
|
prefix = sys.argv[2]
|
|
|
|
else:
|
|
|
|
prefix = '@prefix@'
|
|
|
|
|
|
|
|
if len(sys.argv) > 3:
|
|
|
|
root = sys.argv[3]
|
|
|
|
else:
|
|
|
|
root = ''
|
|
|
|
|
2006-08-04 15:54:28 +02:00
|
|
|
setup.setup_activity(sys.argv[1],
|
2006-10-06 21:08:18 +02:00
|
|
|
'%s%s/share/sugar/activities' % (root, prefix),
|
|
|
|
'%s/bin/sugar-activity-factory' % prefix)
|
2006-08-04 15:54:28 +02:00
|
|
|
|
|
|
|
print '%s installed.' % sys.argv[1]
|