WolframResearch / WolframLanguageForJupyter

Wolfram Language kernel for Jupyter notebooks
MIT License
1.05k stars 126 forks source link

Installation method 1 fails under OS X #8

Closed sakra closed 5 years ago

sakra commented 5 years ago

Installation method 1 does not work for me under OS X:

$ ./configure-jupyter.wls add /Applications/Mathematica.app/Contents/MacOS/WolframKernel 
configure-jupyter.wls: WolframLanguageForJupyter paclet source not detected. Are you running the script in the root project directory?

Reason: The script uses $InputName to compute the project home directory. $InputName results in the empty string when invoked via WolframScript. I fixed the problem by changing line 17 in configure-jupyter.wls to:

projectHome = If[$InputFileName==="", Directory[], DirectoryName[$InputFileName]];