From 49976794c4838b254da110d45f0cb6ceea95ecb7 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 29 Dec 2008 16:22:52 +0000 Subject: Updated Theme Package generator to work with Python 2.6-3.0 (push Python forward!) svn-id: r35613 --- gui/themes/scummtheme.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'gui/themes/scummtheme.py') diff --git a/gui/themes/scummtheme.py b/gui/themes/scummtheme.py index 5aac862727..4a03c89799 100644 --- a/gui/themes/scummtheme.py +++ b/gui/themes/scummtheme.py @@ -9,12 +9,12 @@ THEME_FILE_EXTENSIONS = ('.stx', '.bmp', '.fcc') def buildTheme(themeName): if not os.path.isdir(themeName) or not os.path.isfile(os.path.join(themeName, "THEMERC")): - print "Invalid theme name: " + themeName + print ("Invalid theme name: " + themeName) return zf = zipfile.ZipFile(themeName + ".zip", 'w') - print "Building '" + themeName + "' theme:" + print ("Building '" + themeName + "' theme:") os.chdir(themeName) zf.write('THEMERC', './THEMERC') @@ -22,7 +22,7 @@ def buildTheme(themeName): for filename in os.listdir('.'): if os.path.isfile(filename) and not filename[0] == '.' and filename.endswith(THEME_FILE_EXTENSIONS): zf.write(filename, './' + filename) - print " Adding file: " + filename + print (" Adding file: " + filename) os.chdir('../') @@ -54,7 +54,7 @@ def buildDefTheme(themeName): def_file = open("default.inc", "w") if not os.path.isdir(themeName): - print "Cannot open default theme dir." + print ("Cannot open default theme dir.") def_file.write(""" ""\n""") @@ -68,16 +68,16 @@ def buildDefTheme(themeName): def_file.close() def printUsage(): - print "===============================" - print "ScummVM Theme Generation Script" - print "===============================" - print "Usage:" - print "scummtheme.py makeall" - print " Builds all the available themes.\n" - print "scummtheme.py make [themename]" - print " Builds the theme called 'themename'.\n" - print "scummtheme.py default [themename]" - print " Creates a 'default.inc' file to embed the given theme in the source code.\n" + print ("===============================") + print ("ScummVM Theme Generation Script") + print ("===============================") + print ("Usage:") + print ("scummtheme.py makeall") + print (" Builds all the available themes.\n") + print ("scummtheme.py make [themename]") + print (" Builds the theme called 'themename'.\n") + print ("scummtheme.py default [themename]") + print (" Creates a 'default.inc' file to embed the given theme in the source code.\n") def main(): -- cgit v1.2.3