mirror of https://github.com/jlizier/jidt
Fixing windows paths generated from AutoAnalyser to be properly escaped
This commit is contained in:
parent
9c2a25492f
commit
c233485c90
|
@ -785,11 +785,11 @@ public abstract class AutoAnalyser extends JFrame
|
||||||
String jarLocation, pythonDemosLocation, matlabDemosLocation;
|
String jarLocation, pythonDemosLocation, matlabDemosLocation;
|
||||||
try {
|
try {
|
||||||
File jarLocationFile = new File(jidtFolder + "infodynamics.jar");
|
File jarLocationFile = new File(jidtFolder + "infodynamics.jar");
|
||||||
jarLocation = jarLocationFile.getCanonicalPath();
|
jarLocation = jarLocationFile.getCanonicalPath().replace("\\", "\\\\");
|
||||||
File pythonDemosLocationFile = new File(pathToAutoAnalyserDir + "../python");
|
File pythonDemosLocationFile = new File(pathToAutoAnalyserDir + "../python");
|
||||||
pythonDemosLocation = pythonDemosLocationFile.getCanonicalPath();
|
pythonDemosLocation = pythonDemosLocationFile.getCanonicalPath().replace("\\", "\\\\");
|
||||||
File matlabDemosLocationFile = new File(pathToAutoAnalyserDir + "../octave");
|
File matlabDemosLocationFile = new File(pathToAutoAnalyserDir + "../octave");
|
||||||
matlabDemosLocation = matlabDemosLocationFile.getCanonicalPath();
|
matlabDemosLocation = matlabDemosLocationFile.getCanonicalPath().replace("\\", "\\\\");
|
||||||
} catch (IOException ioex) {
|
} catch (IOException ioex) {
|
||||||
JOptionPane.showMessageDialog(this,
|
JOptionPane.showMessageDialog(this,
|
||||||
ioex.getMessage());
|
ioex.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue