./waf --apiscan: fix bug in detection of whether the per-module bindings dir exists

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-03-24 16:57:27 +00:00
parent 8a8d425071
commit 2d53fa5e7b

View File

@@ -173,7 +173,8 @@ def ns3_python_bindings(bld):
if env['BINDINGS_TYPE'] not in ('modular', 'both'):
return
if not os.path.exists(bld.path.find_dir("bindings").abspath()):
bindings_dir = bld.path.find_dir("bindings")
if bindings_dir is None or not os.path.exists(bindings_dir.abspath()):
warnings.warn("(in %s) Requested to build modular python bindings, but apidefs dir not found "
"=> skipped the bindings." % str(bld.path),
Warning, stacklevel=2)