Fix issue with waf --apiscan=all

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-11-14 12:19:10 +00:00
parent 9e30f25e2e
commit b5a296d127

View File

@@ -168,8 +168,6 @@ def create_obj(bld, *args):
def ns3_python_bindings(bld):
if Options.options.apiscan:
return
# this method is called from a module wscript, so remember bld.path is not bindings/python!
module_abs_src_path = bld.path.abspath()
@@ -177,6 +175,9 @@ def ns3_python_bindings(bld):
env = bld.env
env.append_value("MODULAR_BINDINGS_MODULES", "ns3-"+module)
if Options.options.apiscan:
return
if not env['ENABLE_PYTHON_BINDINGS']:
return