<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
hello, I have some trouble understanding the following behavior of
ipython :
<br>
I am in a virtualenv setup for which I installed the master of
ipython. My virtualenv is in <i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>home/cohen/sources/python/scipydev<span
class="moz-txt-tag">/</span></i>
<br>
<br>
If I type :
<br>
(scipydev)cohen@jarrett:~/sources/python/scipydev$
/home/cohen/sources/python/scipydev/bin/ipython
<br>
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
<br>
Type "copyright", "credits" or "license" for more information.
<br>
<br>
IPython 0.12.dev -- An enhanced Interactive Python.
<br>
? -> Introduction and overview of IPython's features.
<br>
%quickref -> Quick reference.
<br>
help -> Python's own help system.
<br>
object? -> Details about 'object', use 'object??' for extra
details.
<br>
<br>
In [1]: import sys
<br>
<br>
In [2]: sys.path
<br>
Out[2]:
<br>
['',
<br>
'/home/cohen/sources/python/scipydev/bin',
<br>
<clip>
<br>
and things behave ok down the road (say some updated scipy stuff
that I do not have outside of the virtualenv).
<br>
<br>
But then if I do :
<br>
(scipydev)cohen@jarrett:~/sources/python/scipydev$ which ipython
<br>
/home/cohen/sources/python/scipydev/bin/ipython
<br>
(scipydev)cohen@jarrett:~/sources/python/scipydev$ ipython
<br>
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
<br>
Type "copyright", "credits" or "license" for more information.
<br>
<br>
IPython 0.11 -- An enhanced Interactive Python.
<br>
? -> Introduction and overview of IPython's features.
<br>
%quickref -> Quick reference.
<br>
help -> Python's own help system.
<br>
object? -> Details about 'object', use 'object??' for extra
details.
<br>
<br>
In [1]: import sys
<br>
<br>
In [2]: sys.path
<br>
Out[2]:
<br>
['',
<br>
'/usr/local/bin',
<br>
<clip>
<br>
and things go awry because the stuff in
/home/cohen/sources/python/scipydev/lib is overridden by the stuff
in /usr/local/lib.....
<br>
<br>
Why is the call to ipython here behaving differently than the call
to /home/cohen/sources/python/scipydev/bin/ipython, when they are
supposed to point to the same place?
<br>
<br>
thanks for any hindsight,
<br>
Johann
<br>
<br>
</body>
</html>