From e770afc27b328e718bd18a9a31132683affa5973 Mon Sep 17 00:00:00 2001 From: theisen1337 Date: Wed, 10 Jun 2020 23:39:31 -0400 Subject: [PATCH] Updated python script. I added necessary changes to allow the python script to run in python3, while being backwards compatible with 2.7. --- res_raw/sprites/create_blueprint_previews.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res_raw/sprites/create_blueprint_previews.py b/res_raw/sprites/create_blueprint_previews.py index 4dd44445..586c4760 100644 --- a/res_raw/sprites/create_blueprint_previews.py +++ b/res_raw/sprites/create_blueprint_previews.py @@ -1,5 +1,5 @@ # Requirements: numpy, scipy, Pillow, - +from __future__ import print_function import sys import numpy as np from scipy import ndimage @@ -59,7 +59,7 @@ def save_image(data, outfilename, src_image): def roberts_cross(infilename, outfilename): - print "Processing", infilename + print("Processing", infilename) img = Image.open(infilename) img.load() img = img.filter(ImageFilter.GaussianBlur(0.5)) @@ -72,7 +72,7 @@ def roberts_cross(infilename, outfilename): def generateUiPreview(srcPath, buildingId): - print srcPath, buildingId + print(srcPath, buildingId) img = Image.open(srcPath) img.load() img.thumbnail((110, 110), Image.ANTIALIAS)