aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen/generate_json.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/vppapigen/generate_json.py')
-rwxr-xr-xsrc/tools/vppapigen/generate_json.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/vppapigen/generate_json.py b/src/tools/vppapigen/generate_json.py
index 610f84f5533..dc5cf9c1bbf 100755
--- a/src/tools/vppapigen/generate_json.py
+++ b/src/tools/vppapigen/generate_json.py
@@ -110,6 +110,15 @@ def main():
],
f.name,
),
+ "outputdir": "%s/%s/"
+ % (
+ output_path,
+ output_dir_map[
+ f.as_posix().split("/")[
+ src_dir_depth + BASE_DIR.count("/") - 1
+ ]
+ ],
+ ),
"input_file": f.as_posix(),
"includedir": [src_dir.as_posix()],
"output_module": "JSON",