summaryrefslogtreecommitdiffstats
path: root/test/QT/Tool.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/QT/Tool.py')
-rw-r--r--test/QT/Tool.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/QT/Tool.py b/test/QT/Tool.py
index 86eb4ca..63fb113 100644
--- a/test/QT/Tool.py
+++ b/test/QT/Tool.py
@@ -90,7 +90,7 @@ def CheckForQt(context):
"/usr/pkg/qt3" # pkgsrc (NetBSD)
]
- if os.environ.has_key('QTDIR'):
+ if 'QTDIR' in os.environ:
potential_qt_dirs.insert(0, os.environ[ 'QTDIR' ])
if env[ 'qt_directory' ] != "/":
@@ -125,10 +125,8 @@ def CheckForQt(context):
return 0
def AttemptLinkWithVariables(context, variables, code, extension, prefix):
- return DoWithVariables(variables,
- prefix,
- lambda c=context, code=code, e=extension:
- c.TryLink(code, e))
+ return DoWithVariables(variables, prefix,
+ lambda: context.TryLink(code, extension))
env = Environment(CPPPATH=['.'], LIBPATH=['.'], LIBS=[])