From 0f6ec143612b29306e20b0512a8b1ea3b2cb7662 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 07 Feb 2011 14:05:17 +0000 Subject: trying base64 for draw_pixbuf sharing --- (limited to 'TurtleArt/tautils.py') diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py index db2ef4b..2b7b230 100644 --- a/TurtleArt/tautils.py +++ b/TurtleArt/tautils.py @@ -296,6 +296,7 @@ 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 @@ -308,6 +309,7 @@ def base64_to_image(data, path_name): 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 -- cgit v0.9.1