summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-08 19:04:26 +0000
committerDavid Robillard <d@drobilla.net>2012-07-08 19:04:26 +0000
commit3407d0abe6ac75c8cf57734da64b482d9ef11b75 (patch)
tree7610d68312967acea6fa7af6ecbe3cd710deee9b
parent47b48eb4a26eea29fe19b75f53653450ea87b16a (diff)
downloadautowaf-3407d0abe6ac75c8cf57734da64b482d9ef11b75.tar.gz
autowaf-3407d0abe6ac75c8cf57734da64b482d9ef11b75.tar.bz2
autowaf-3407d0abe6ac75c8cf57734da64b482d9ef11b75.zip
Fix Python3 compatibility.
git-svn-id: http://svn.drobilla.net/autowaf@69 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa
-rw-r--r--autowaf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autowaf.py b/autowaf.py
index cd8f6d5..5120f3f 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -588,7 +588,7 @@ def run_ldconfig(ctx):
if (ctx.cmd == 'install'
and not ctx.env['RAN_LDCONFIG']
and ctx.env['LIBDIR']
- and not os.environ.has_key('DESTDIR')):
+ and not 'DESTDIR' in os.environ):
try:
Logs.info("Waf: Running `/sbin/ldconfig %s'" % ctx.env['LIBDIR'])
subprocess.call(['/sbin/ldconfig', ctx.env['LIBDIR']])