summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2023-10-02 13:31:06 -0500
committerThaddeus Crews <repiteo@outlook.com>2023-10-18 11:32:51 -0500
commit7a5cbcac21a96fcdd1a7cea0e4f81bca99d4df7a (patch)
tree87e6e1c578a0f54ab12f721bce1fa54b5db3d55d /tools
parent64eac01d04cd6ced10ad72dece92fdc971161d89 (diff)
downloadredot-cpp-7a5cbcac21a96fcdd1a7cea0e4f81bca99d4df7a.tar.gz
Let gdextension_dir function as only argument
Diffstat (limited to 'tools')
-rw-r--r--tools/godotcpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/godotcpp.py b/tools/godotcpp.py
index 69a4652..6b44272 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("."),
[