Fix using wrong path on linux

This commit is contained in:
s809
2025-01-24 11:28:51 +05:00
parent 3ad68aaf42
commit 4eb20d5ce8
+9 -1
View File
@@ -51,7 +51,15 @@ class RelocateNatives
ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.directory(new File(System.getProperty("user.dir")));
processBuilder.command("./.venv/Scripts/python", "./relocate_natives/process.py", outputFilePath.toString());
if (Path.of(System.getProperty("user.dir"), ".venv/Scripts").toFile().exists())
{
processBuilder.command("./.venv/Scripts/python", "./relocate_natives/process.py", outputFilePath.toString());
}
else
{
processBuilder.command("./.venv/bin/python", "./relocate_natives/process.py", outputFilePath.toString());
}
Process process = processBuilder.start();
CompletableFuture<Void> outputFuture = CompletableFuture.runAsync(() -> {