From 1a2d6f811bd59463941e3a9dc8636c7533889d2b Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Mon, 18 Dec 2023 17:37:31 +0100 Subject: [PATCH] correct the backslash for url paths --- .../modelrunner/bioimageio/description/SpecialModels.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/bioimage/modelrunner/bioimageio/description/SpecialModels.java b/src/main/java/io/bioimage/modelrunner/bioimageio/description/SpecialModels.java index 4aa0d125..4ad3214e 100644 --- a/src/main/java/io/bioimage/modelrunner/bioimageio/description/SpecialModels.java +++ b/src/main/java/io/bioimage/modelrunner/bioimageio/description/SpecialModels.java @@ -101,7 +101,7 @@ private static boolean extractStardist(ModelDescriptor descriptor) { File scriptFile = new File(descriptor.getModelPath() + File.separator + "stardist_postprocessing.py"); if (!envFile.isFile()) { try (InputStream envStream = SpecialModels.class.getClassLoader() - .getResourceAsStream("op_environments" + File.separator + "stardist.yaml")){ + .getResourceAsStream("op_environments" + "/stardist.yaml")){ Files.copy(envStream, envFile.toPath(), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { e.printStackTrace(); @@ -110,7 +110,7 @@ private static boolean extractStardist(ModelDescriptor descriptor) { } if (!scriptFile.isFile()) { try (InputStream scriptStream = SpecialModels.class.getClassLoader() - .getResourceAsStream("ops" + File.separator + "stardist_postprocessing" + File.separator + "stardist_postprocessing.py")){ + .getResourceAsStream("ops" + "/stardist_postprocessing" + "/stardist_postprocessing.py")){ Files.copy(scriptStream, scriptFile.toPath(), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { e.printStackTrace();