From e973b667b2ab1c28a8a82bcd2f8bf1d712fc2df8 Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Tue, 19 Sep 2023 16:30:47 +0200 Subject: [PATCH] correct path error in non windows --- .../modelrunner/tensorflow/v1/Tensorflow1Interface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v1/Tensorflow1Interface.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v1/Tensorflow1Interface.java index 26fb9f0..7af5bcb 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v1/Tensorflow1Interface.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v1/Tensorflow1Interface.java @@ -644,7 +644,7 @@ private void retrieveInterprocessingTensors(List> tensors) throws RunM private static String padSpecialJavaBin(String javaBin) { String[] specialChars = new String[] {" "}; for (String schar : specialChars) { - if (javaBin.contains(schar)) { + if (javaBin.contains(schar) && PlatformDetection.isWindows()) { return "\"" + javaBin + "\""; } }