diff options
Diffstat (limited to 'install-activity.py')
-rwxr-xr-x | install-activity.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/install-activity.py b/install-activity.py new file mode 100755 index 0000000..26f0269 --- /dev/null +++ b/install-activity.py @@ -0,0 +1,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]) |