diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-02-11 00:43:04 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-02-11 00:43:04 (GMT) |
commit | 4ac06b5c41e9405afd5a5401ef50e2d6b17d01de (patch) | |
tree | 989ca9570ec364a94ee437a829d94999f285b860 /TurtleArt/tautils.py | |
parent | 0c5dff2ababfe4050ae2b35c88b8c9a4c9bc5e15 (diff) |
clean up for pixbuf sharing
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r-- | TurtleArt/tautils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py index 2b7b230..0486311 100644 --- a/TurtleArt/tautils.py +++ b/TurtleArt/tautils.py @@ -296,20 +296,18 @@ def image_to_base64(pixbuf, path_name): file_handle = open(base64, 'r') data = file_handle.read() file_handle.close() - print 'image to base64:' + file_name return data def base64_to_image(data, path_name): """ Convert base64-encoded data to an image """ base64 = os.path.join(path_name, 'base64tmp') - file_handle = open(_base64, 'w') + file_handle = open(base64, 'w') file_handle.write(data) file_handle.close() file_name = os.path.join(path_name, 'imagetmp.png') cmd = "base64 -d <" + base64 + ">" + file_name subprocess.check_call(cmd, shell=True) - print 'base64 to image:' + file_name return file_name |