sugar-toolkit-gtk3/bin/sugar-install-bundle

13 lines
261 B
Python
Executable File

#!/usr/bin/env python
import sys
from sugar.activity.bundle import Bundle
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
bundle = Bundle(sys.argv[1])
bundle.install()
print "%s: '%s' installed." % (sys.argv[0], sys.argv[1])