mattpap / IScala

Scala backend for IPython
MIT License
322 stars 50 forks source link

Unable to access jarfile from project folder #26

Open koaning opened 9 years ago

koaning commented 9 years ago

After downloading it is not able to find jarfile. I am running it in the right folder, right?

code at codes-MacBook-Pro.local  ~
$ cd Downloads/IScala-0.1
code at codes-MacBook-Pro.local  ~/Downloads/IScala-0.1
$ ls
LICENSE    README.md  bin/       lib/
code at codes-MacBook-Pro.local  ~/Downloads/IScala-0.1
$ bin/console
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
usage: dirname path
Error: Unable to access jarfile /lib/IScala.jar
aeriksson commented 9 years ago

The scripts in bin use readlink -f $0 to get the script dir.

However, -f means different things to GNU readlink and the BSD readlink provided with OS X.

The scripts should probably use something more portable.