pineapple icon indicating copy to clipboard operation
pineapple copied to clipboard

BUG: installed scripts not on search path

Open deeplook opened this issue 10 years ago • 2 comments

It looks like the Unix search path inside Pineapple does include its own folder(s) e.g. /Applications/Pineapple-Pro.app//Contents/Resources/python2.7/bin/ so when you install something like Bokeh inside Pineapple (which is now installed by default, but nevertheless) you cannot start installed tools belonging to it like bokeh-server with ! bokeh-server. Having it installed by default doesn't change that.

At the moment ! echo $PATH gives /usr/bin:/bin:/usr/sbin:/sbin only. Adding Pineapple's bin folder should solve this.

deeplook avatar Sep 22 '15 10:09 deeplook

That is a good idea, not too hard to do.

nwhitehead avatar Sep 23 '15 04:09 nwhitehead

Adding Pineapple's own installation folder(s) should be easy. But adding also the user's folders as specified in his bash's .bash_profile or .bashrc files might be harder (also, since that could be another shell).

Maybe one needs to execute the user's default shell for Terminal.app ($SHELL) and copy the whole environment? If I run ipython notebook and execute ! env I seem to get exactly this (without anything added by IPython, of course), which is probably what most people would expect from Pineapple, too (with its own stuff inserted at the beginning of PATH I assume).

deeplook avatar Sep 23 '15 09:09 deeplook