nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
352 stars 24 forks source link

BUG: installed scripts not on search path #39

Open deeplook opened 9 years ago

deeplook commented 9 years ago

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.

nwhitehead commented 9 years ago

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

deeplook commented 9 years ago

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).