summaryrefslogtreecommitdiff
path: root/test/QT
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-09 22:36:28 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-09 22:36:28 -0800
commitc70c36dfab9b0899292634812695c4860d13b83d (patch)
treec26e10d4c323c8c43df51709ef784465c9857d95 /test/QT
parenta8681c78f67d8ab70d0ee58e92445e8cae94f8f2 (diff)
downloadscons-c70c36dfab9b0899292634812695c4860d13b83d.tar.gz
Use print() function to fix py2/3
Diffstat (limited to 'test/QT')
-rw-r--r--test/QT/Tool.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/QT/Tool.py b/test/QT/Tool.py
index 63fb113e..9e4a277b 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'])