Fixing windows paths generated from AutoAnalyser to be properly escaped

This commit is contained in:
jlizier 2022-09-01 15:28:28 +10:00
parent 9c2a25492f
commit c233485c90
1 changed files with 3 additions and 3 deletions

View File

@ -785,11 +785,11 @@ public abstract class AutoAnalyser extends JFrame
String jarLocation, pythonDemosLocation, matlabDemosLocation;
try {
File jarLocationFile = new File(jidtFolder + "infodynamics.jar");
jarLocation = jarLocationFile.getCanonicalPath();
jarLocation = jarLocationFile.getCanonicalPath().replace("\\", "\\\\");
File pythonDemosLocationFile = new File(pathToAutoAnalyserDir + "../python");
pythonDemosLocation = pythonDemosLocationFile.getCanonicalPath();
pythonDemosLocation = pythonDemosLocationFile.getCanonicalPath().replace("\\", "\\\\");
File matlabDemosLocationFile = new File(pathToAutoAnalyserDir + "../octave");
matlabDemosLocation = matlabDemosLocationFile.getCanonicalPath();
matlabDemosLocation = matlabDemosLocationFile.getCanonicalPath().replace("\\", "\\\\");
} catch (IOException ioex) {
JOptionPane.showMessageDialog(this,
ioex.getMessage());