[Scummvm-cvs-logs] SF.net SVN: scummvm:[35613] scummvm/trunk/gui/themes/scummtheme.py

tanoku at users.sourceforge.net tanoku at users.sourceforge.net
Mon Dec 29 17:22:52 CET 2008


Revision: 35613
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35613&view=rev
Author:   tanoku
Date:     2008-12-29 16:22:52 +0000 (Mon, 29 Dec 2008)

Log Message:
-----------
Updated Theme Package generator to work with Python 2.6-3.0 (push Python forward!)

Modified Paths:
--------------
    scummvm/trunk/gui/themes/scummtheme.py

Modified: scummvm/trunk/gui/themes/scummtheme.py
===================================================================
--- scummvm/trunk/gui/themes/scummtheme.py	2008-12-29 16:17:51 UTC (rev 35612)
+++ scummvm/trunk/gui/themes/scummtheme.py	2008-12-29 16:22:52 UTC (rev 35613)
@@ -9,12 +9,12 @@
 
 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 @@
 	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_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(""" "<?xml version = '1.0'?>"\n""")
 		
@@ -68,16 +68,16 @@
 	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():
 		


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list