Skip to content

Commit 81f23ee

Browse files
committed
Correct GDExtension symlink in run.py
1 parent ad876a4 commit 81f23ee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/1-gdextension/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55

66
PROJECT_DIR = Path(__file__).resolve().parent
7-
GODOT_HEADERS_DIR = PROJECT_DIR / "godot_headers"
7+
GDEXTENSION_DIR = PROJECT_DIR / "gdextension_api"
88

99

1010
if platform.system() == "Windows":
11-
cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GODOT_HEADERS_DIR)]
11+
cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GDEXTENSION_DIR)]
1212
print(f"cd {PROJECT_DIR} && " + " ".join(cmd))
1313
subprocess.check_call(cmd, cwd=PROJECT_DIR)
1414

@@ -24,7 +24,7 @@
2424
"-o",
2525
"my.o",
2626
"-I",
27-
str(GODOT_HEADERS_DIR),
27+
str(GDEXTENSION_DIR),
2828
]
2929
print(f"cd {PROJECT_DIR} && " + " ".join(cmd))
3030
subprocess.check_call(cmd, cwd=PROJECT_DIR)

tests/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def create_test_workdir(test_dir: Path, distrib_workdir: Path, test_workdir: Pat
123123
shutil.copytree(test_dir, test_workdir, dirs_exist_ok=True)
124124
symlink(distrib_workdir / "addons", test_workdir / "addons")
125125
shutil.copy(distrib_workdir / "pythonscript.gdextension", test_workdir)
126-
# Godot headers are needed to compile Cython modules
127-
symlink(test_dir / "../../godot_headers", test_workdir / "godot_headers")
126+
# GDExtension headers are needed to compile Cython modules
127+
symlink(build_dir / "gdextension_api", test_workdir / "gdextension_api")
128128

129129
build_script = test_workdir / "build.py"
130130
if build_script.exists():

0 commit comments

Comments
 (0)