all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changing $PATH in eshell, in a bash-like behaviour
@ 2010-08-13  9:22 Gabriele Lanaro
  2010-08-13  9:31 ` Andrea Crotti
  2010-08-16 20:42 ` John Wiegley
  0 siblings, 2 replies; 4+ messages in thread
From: Gabriele Lanaro @ 2010-08-13  9:22 UTC (permalink / raw)
  To: johnw, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

I'm trying to add an additional directory to PATH, in order to use python
virtual environments (virtualenv).

A virtual environment is a directory that contains different version of
various programs/script in its bin directory.

--- virtualenv hello ---
hello/
  - hello/bin
           python
           pip
           easy_install
           ...
   - hello/lib/
        ---

The problem here is tat if I add the directory /abs/path/to/hello/bin as the
first element of PATH (using getenv/setenv), eshell modifies correctly the
variable but doesn't prefer the commands defined in hello/bin, for example:

eshell> which python
/usr/bin/python
eshell> # path modification
eshell> echo $PATH # or getenv PATH
/abs/path/to/hello/bin:/bin:/usr/bin:...
eshell> which python
/usr/bin/python

If i launch the command in another way, using for example shell-command..

M-! which python
/abs/path/to/hello/bin/python

So it works in the correct way.

How to make eshell behaving the same way, are there any workaround I can do?

[-- Attachment #2: Type: text/html, Size: 1142 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-16 20:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6.1281691379.25007.help-gnu-emacs@gnu.org>
2010-08-13 11:06 ` Changing $PATH in eshell, in a bash-like behaviour Stefan Monnier
2010-08-13  9:22 Gabriele Lanaro
2010-08-13  9:31 ` Andrea Crotti
2010-08-16 20:42 ` John Wiegley

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.