aboutsummaryrefslogtreecommitdiff
path: root/gui/themes
diff options
context:
space:
mode:
authorVicent Marti2008-12-29 16:22:52 +0000
committerVicent Marti2008-12-29 16:22:52 +0000
commit49976794c4838b254da110d45f0cb6ceea95ecb7 (patch)
treead055a8c83194abdf3107aaa564cc159b066c71f /gui/themes
parente432dad215ed01feb9f761fce61ee6d57510f505 (diff)
downloadscummvm-rg350-49976794c4838b254da110d45f0cb6ceea95ecb7.tar.gz
scummvm-rg350-49976794c4838b254da110d45f0cb6ceea95ecb7.tar.bz2
scummvm-rg350-49976794c4838b254da110d45f0cb6ceea95ecb7.zip
Updated Theme Package generator to work with Python 2.6-3.0 (push Python forward!)
svn-id: r35613
Diffstat (limited to 'gui/themes')
-rw-r--r--gui/themes/scummtheme.py28
1 files changed, 14 insertions, 14 deletions
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(""" "<?xml version = '1.0'?>"\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():