]> git.saurik.com Git - wxWidgets.git/blobdiff - build/tools/builder.py
Explicitly trigger wxNotebook layout in wxMSW to ensure it is correct.
[wxWidgets.git] / build / tools / builder.py
index 484e274f573b566d19ef9a1d448ef409cda69673..635c5ae46bdf64ef3cd8fdcc85b62ae6246a2a31 100755 (executable)
@@ -1,5 +1,4 @@
 import os
-import string
 import subprocess
 import sys
 import time
@@ -18,7 +17,7 @@ def runInDir(command, dir=None, verbose=True):
 
     commandStr = " ".join(command)
     if verbose:
-        print commandStr
+        print(commandStr)
     result = os.system(commandStr)
 
     if dir:
@@ -179,17 +178,17 @@ class AutoconfBuilder(GNUMakeBuilder):
             sys.stderr.write("Could not find configure script at %r. Have you run autoconf?\n" % dir)
             return 1
 
-        optionsStr = string.join(options, " ") if options else ""
+        optionsStr = " ".join(options) if options else ""
         command = "%s %s" % (configure_cmd, optionsStr)
-        print command
+        print(command)
         result = os.system(command)
         #os.chdir(olddir)
         return result
 
 
 class MSVCBuilder(Builder):
-    def __init__(self):
-        Builder.__init__(self, commandName="nmake.exe", formatName="msvc")
+    def __init__(self, commandName="nmake.exe"):
+        Builder.__init__(self, commandName=commandName, formatName="msvc")
 
     def isAvailable(self):
         PATH = os.environ['PATH'].split(os.path.pathsep)