diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:36:28 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:36:28 (GMT) |
commit | 390c4c431abef8b0809a3c30ec07dc6900cb32ce (patch) | |
tree | c26e10d4c323c8c43df51709ef784465c9857d95 /test/QT | |
parent | e179b10881ed0e61226a500ef45e35b76dbe2b4b (diff) | |
download | SCons-390c4c431abef8b0809a3c30ec07dc6900cb32ce.zip SCons-390c4c431abef8b0809a3c30ec07dc6900cb32ce.tar.gz SCons-390c4c431abef8b0809a3c30ec07dc6900cb32ce.tar.bz2 |
Use print() function to fix py2/3
Diffstat (limited to 'test/QT')
-rw-r--r-- | test/QT/Tool.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/QT/Tool.py b/test/QT/Tool.py index 63fb113..9e4a277 100644 --- a/test/QT/Tool.py +++ b/test/QT/Tool.py @@ -22,6 +22,8 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +from __future__ import print_function + __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" """ @@ -98,7 +100,7 @@ def CheckForQt(context): if os.path.isfile(uic_path): potential_qt_dirs.insert(0, env[ 'qt_directory' ]) else: - print "QT not found. Invalid qt_directory value - failed to find uic." + print("QT not found. Invalid qt_directory value - failed to find uic.") return 0 for i in potential_qt_dirs: @@ -106,21 +108,21 @@ def CheckForQt(context): if CheckForQtAt(context, i): # additional checks to validate QT installation if not os.path.isfile(os.path.join(i, 'bin', 'uic')): - print "QT - failed to find uic." + print("QT - failed to find uic.") return 0 if not os.path.isfile(os.path.join(i, 'bin', 'moc')): - print "QT - failed to find moc." + print("QT - failed to find moc.") return 0 if not os.path.exists(os.path.join(i, 'lib')): - print "QT - failed to find QT lib path." + print("QT - failed to find QT lib path.") return 0 if not os.path.exists(os.path.join(i, 'include')): - print "QT - failed to find QT include path." + print("QT - failed to find QT include path.") return 0 return 1 else: if i==env['qt_directory']: - print "QT directory not valid. Failed QT test build." + print("QT directory not valid. Failed QT test build.") return 0 return 0 @@ -140,7 +142,7 @@ config = env.Configure(custom_tests = { }) if not config.CheckForQt(): - print "Failed to find valid QT environment." + print("Failed to find valid QT environment.") Exit(1) env.Tool('qt', ['$TOOL_PATH']) |