Browse Source

Merge pull request #1258 from Repiteo/standalone-gdextension_dir

Let `gdextension_dir` function as standalone argument
David Snopek 1 year ago
parent
commit
5c4a7dc7b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/godotcpp.py

+ 1 - 1
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("."),
         [