From 3a9613979a8a8604aa66f9127f4ce1108361525f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 29 Nov 2023 13:53:17 +0800 Subject: [PATCH] auto generate openapi --- tools/openapi/generates.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/openapi/generates.py b/tools/openapi/generates.py index b44b1c3c..77965ebd 100644 --- a/tools/openapi/generates.py +++ b/tools/openapi/generates.py @@ -78,6 +78,12 @@ def get_version() -> str: elif os.path.isfile("../../cmake-build-release/version.h"): print("Found version.h in cmake-build-release") version_h_path = "../../cmake-build-release/version.h" + elif os.path.isfile("../../build/version.h"): + print("Found version.h in build") + version_h_path = "../../build/version.h" + elif os.path.isfile("../../linux_build/version.h"): + print("Found version.h in linux_build") + version_h_path = "../../linux_build/version.h" else: print("version.h not found") print("Please compile first")