Skip to content

Commit 775f15e

Browse files
committed
Fixed recognition of Mathematica installation for Windows
Fixes #61
1 parent 30c8bb4 commit 775f15e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package de.halirutan.mathematica.codeinsight.completion;
2+
3+
/**
4+
* @author patrick (02.01.17).
5+
*/
6+
public class MathematicaCompletionSkipper {
7+
}

src/de/halirutan/mathematica/sdk/MathematicaSdkType.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ public String getVersionString(@NotNull Sdk sdk) {
138138
@Override
139139
public boolean isValidSdkHome(String path) {
140140
String kernelLocation = "";
141-
if (OS.contains("win") || OS.contains("nux")) {
141+
if (OS.contains("win")) {
142+
kernelLocation = path + File.separatorChar + "MathKernel.exe";
143+
} else if (OS.contains("nux")) {
142144
kernelLocation = path + File.separatorChar + "Executables" + File.separatorChar + "MathKernel";
143-
if (OS.contains("win")) {
144-
kernelLocation += ".exe";
145-
}
146145
} else if (OS.contains("mac")) {
147146
kernelLocation = path + File.separatorChar + "Contents/MacOS/MathKernel";
148147
}

0 commit comments

Comments
 (0)