Skip to content

Commit

Permalink
correct the backslash for url paths
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Dec 18, 2023
1 parent fad2416 commit 1a2d6f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 1a2d6f8

Please sign in to comment.