From 7a5cbcac21a96fcdd1a7cea0e4f81bca99d4df7a Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Mon, 2 Oct 2023 13:31:06 -0500 Subject: [PATCH] Let gdextension_dir function as only argument --- tools/godotcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/godotcpp.py b/tools/godotcpp.py index 69a46524..6b44272e 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -284,8 +284,8 @@ def generate(env): def _godot_cpp(env): - api_file = normalize_path(env.get("custom_api_file", env.File("gdextension/extension_api.json").abspath), env) extension_dir = normalize_path(env.get("gdextension_dir", env.Dir("gdextension").abspath), env) + api_file = normalize_path(env.get("custom_api_file", env.File(extension_dir + "/extension_api.json").abspath), env) bindings = env.GodotCPPBindings( env.Dir("."), [