diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-12-23 18:24:21 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-12-23 18:24:21 (GMT) |
commit | 96bf5de0e36a8c761d84268911d75dfd07b2c0cf (patch) | |
tree | 9c216afe445fc6bdc4834205d82ed487a11297b0 /turtleblocks | |
parent | a860a7492ea17b7a64b387362183e1d4c414b08a (diff) |
use string.join
Diffstat (limited to 'turtleblocks')
-rwxr-xr-x | turtleblocks | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/turtleblocks b/turtleblocks index c381e5a..8b1040c 100755 --- a/turtleblocks +++ b/turtleblocks @@ -18,6 +18,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import os +import string import sys argv = sys.argv[:] @@ -28,7 +29,8 @@ TAPATH = '/usr/share/sugar/activities/TurtleArt.activity' if len(argv) > 1: argv = argv[1:] - os.system(os.path.join(TAPATH, 'turtleblocks.py') + ' ' + argv.join(' ')) + params = string.join(argv, ' ') + os.system(os.path.join(TAPATH, 'turtleblocks.py') + ' ' + params) else: os.system(os.path.join(TAPATH, 'turtleblocks.py')) |