Update other scripts to support Python 3 build.

A couple of scripts were not Python 3 compatible. Update smtextgen to
use print() instead of bare print, and update the texture build script
to use the correct binary mode for writing binary files.
This commit is contained in:
Simon Howard 2014-10-28 03:55:43 +00:00
parent e47b69a064
commit 02bd566362
2 changed files with 10 additions and 9 deletions

View file

@ -140,9 +140,9 @@ def parse_command_line(args):
args = parse_command_line(sys.argv[1:])
if not args:
print "Usage: smtextgen <filename> <size> [...text commands...]"
print "Where each text command looks like:"
print " [x,y] [text]"
print("Usage: smtextgen <filename> <size> [...text commands...]")
print("Where each text command looks like:")
print(" [x,y] [text]")
sys.exit(0)
smallfont = Font()