Skip to content

Commit 7704a9d

Browse files
Repiteodsnopek
authored andcommitted
Let gdextension_dir function as only argument
(cherry picked from commit 7a5cbca)
1 parent f7ffc4f commit 7704a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/godotcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def generate(env):
273273

274274

275275
def _godot_cpp(env):
276-
api_file = normalize_path(env.get("custom_api_file", env.File("gdextension/extension_api.json").abspath), env)
277276
extension_dir = normalize_path(env.get("gdextension_dir", env.Dir("gdextension").abspath), env)
277+
api_file = normalize_path(env.get("custom_api_file", env.File(extension_dir + "/extension_api.json").abspath), env)
278278
bindings = env.GodotCPPBindings(
279279
env.Dir("."),
280280
[

0 commit comments

Comments
 (0)