diff --git a/src/wscript b/src/wscript index 20c72bbd9..fcb52c7c6 100644 --- a/src/wscript +++ b/src/wscript @@ -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