Json bindings are generated in cwd

pull/97/head
Nickolai Korshunov 2018-02-18 15:14:56 +03:00
parent 00e1b47c6f
commit 0fbfe5dd12
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ add_sources(sources, "src/core")
if ARGUMENTS.get("generate_bindings", "no") == "yes": if ARGUMENTS.get("generate_bindings", "no") == "yes":
# TODO Generating the API should be done only if the Godot build is more recent than the JSON file # TODO Generating the API should be done only if the Godot build is more recent than the JSON file
json_api_file = 'godot_api.json' json_api_file = os.path.join(os.getcwd(), 'godot_api.json')
subprocess.call([os.path.expanduser(godot_bin_path), '--gdnative-generate-json-api', json_api_file]) subprocess.call([os.path.expanduser(godot_bin_path), '--gdnative-generate-json-api', json_api_file])