Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-install-bundle
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sugar-install-bundle')
-rw-r--r--bin/sugar-install-bundle10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/sugar-install-bundle b/bin/sugar-install-bundle
index 52deada..a034135 100644
--- a/bin/sugar-install-bundle
+++ b/bin/sugar-install-bundle
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import sys
+import fileinput
from sugar.bundle.activitybundle import ActivityBundle
@@ -14,7 +15,8 @@ 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])
+for line in fileinput.input():
+ if line:
+ bundle = ActivityBundle(line)
+ bundle.install()
+ print "%s: '%s' installed." % (sys.argv[0], line)