From d6a0c2ef4508fa1a9a8657a8f96fe1d8e2575ab6 Mon Sep 17 00:00:00 2001 From: Thomas MUSSET <thomas.musset@pasteur.fr> Date: Thu, 3 Nov 2022 16:32:50 +0100 Subject: [PATCH] Removed double escaped charaters --- src/main/java/plugins/atournay/jep/utils/PythonUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/plugins/atournay/jep/utils/PythonUtils.java b/src/main/java/plugins/atournay/jep/utils/PythonUtils.java index 70baf2c..398e589 100644 --- a/src/main/java/plugins/atournay/jep/utils/PythonUtils.java +++ b/src/main/java/plugins/atournay/jep/utils/PythonUtils.java @@ -121,7 +121,7 @@ public class PythonUtils { */ public String setSitePackagesDirectory() { String terminalLine; - String[] command = new String[]{JepPreferences.getInstance().getPythonExecPath(), "-c", "import sys; print([p for p in sys.path if p.endswith(\\\"site-packages\\\")])"}; + String[] command = new String[]{JepPreferences.getInstance().getPythonExecPath(), "-c", "import sys; print([p for p in sys.path if p.endswith(\"site-packages\")])"}; String sitePackagesPath = ""; try { @@ -136,7 +136,6 @@ public class PythonUtils { String[] spList = terminalLine.replaceAll("[\\[\\]' ]", "").split(","); for (String spPath : spList) { - System.out.println(spPath); if (spPath.contains("site-packages")) { sitePackagesPath = spPath; break; -- GitLab