diff --git a/src/main/java/ch/epfl/biop/wrappers/ExecutePythonInConda.java b/src/main/java/ch/epfl/biop/wrappers/ExecutePythonInConda.java index 06db8a6..78c8359 100644 --- a/src/main/java/ch/epfl/biop/wrappers/ExecutePythonInConda.java +++ b/src/main/java/ch/epfl/biop/wrappers/ExecutePythonInConda.java @@ -73,8 +73,12 @@ public static void execute(String envDirPath, String envType, List argum } else if (envType.equals("venv")) { // venv if (IJ.isWindows()) { - List venv_activate_cmd = Arrays.asList("cmd.exe", "/C", new File(envDirPath, "Scripts/activate").toString()); + List venv_activate_cmd = Arrays.asList(new File(envDirPath, "Scripts/activate").toString()); cmd.addAll(venv_activate_cmd); + cmd.add("&");// to have a second command + List module_args_cmd = Arrays.asList("python", "-Xutf8"); + cmd.addAll(module_args_cmd); + cmd.addAll(arguments); } else if (IJ.isMacOSX() || IJ.isLinux()) { throw new UnsupportedOperationException("Mac/Unix not supported yet with virtual environment. Please try conda instead."); }