From 1375c038a400a693986306e8e77f14bac167d1cc Mon Sep 17 00:00:00 2001 From: Aaron Fabbri Date: Wed, 18 Sep 2024 23:22:07 +0000 Subject: [PATCH] Make java_path a Path, not string --- interface_gen/toolchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface_gen/toolchain.py b/interface_gen/toolchain.py index 46f5600..5be58a1 100644 --- a/interface_gen/toolchain.py +++ b/interface_gen/toolchain.py @@ -30,7 +30,7 @@ def find_java(root: Path) -> Path | None: java_path = java_files[0] env = java_env(java_path) subprocess.check_output([str(java_path), '-version'], env=env) - return java_path + return Path(java_path) def ensure_jre() -> Path | None: