diff --git a/SConstruct b/SConstruct index e6a09418..a2d77d31 100644 --- a/SConstruct +++ b/SConstruct @@ -359,7 +359,7 @@ json_api_file = '' if 'custom_api_file' in env: json_api_file = env['custom_api_file'] else: - json_api_file = os.path.join(os.getcwd(), 'godot_headers', 'api.json') + json_api_file = os.path.join(os.getcwd(), env['headers_dir'], 'api.json') if env['generate_bindings']: # Actually create the bindings here