Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/install-activity.py
blob: 26f0269978fdc584b27f03bb8b77172025e16254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
import sys

from sugar.bundle.activitybundle import ActivityBundle

def cmd_help():
    print 'Usage: sugar-install-bundle [ bundlename ] \n\n\
    Install an activity bundle (.xo). \n'

if len(sys.argv) != 2:
    cmd_help()
    sys.exit(2)

bundle = ActivityBundle(sys.argv[1])
bundle.install()

print "%s: '%s' installed." % (sys.argv[0], sys.argv[1])