Re: sys.path issue in cygwin

2007-01-24 Thread Wang Shuhao
.path become correct. Override the environment variable in Cygwing is also Ok. - Original Message - From: "Jason Tishler" <[EMAIL PROTECTED]> To: "Wang Shuhao" <[EMAIL PROTECTED]> Cc: "Python-List" Sent: Wednesday, January 24, 2007 11:23 PM

Re: sys.path issue in cygwin

2007-01-24 Thread Gabriel Genellina
At Wednesday 24/1/2007 04:58, Wang Shuhao wrote: To keep the question simple, I've set PATH= in cygwin.bat to avoid python initialze sys.path from Windows' PATH environment. The simple answer is that sys.path has nothing to do with the PATH environment variable. sys.path is initialized from t

Re: sys.path issue in cygwin

2007-01-24 Thread Jason Tishler
Wang, Please keep your replies on-list. On Wed, Jan 24, 2007 at 10:28:51PM +0800, Wang Shuhao wrote: > > Why not use the Python that is part of the standard Cygwin > > distribution? > > > Cause the Cygwin version python has the same problem, that why I try > to build python from source. The abo

Re: sys.path issue in cygwin

2007-01-24 Thread Wang Shuhao
ONHOME controls the content of the initial sys.path. put export PYTHONHOME=/usr/local in .bash_profile will fix it. - Original Message - From: "Steve Holden" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 24, 2007 9:42 PM Subject: Re: sys.path issue in cygwin >

Re: sys.path issue in cygwin

2007-01-24 Thread Steve Holden
Wang Shuhao wrote: > > > I successfully built and installed Python 2.2.3 in cygwin. But there is > something wrong in the sys.path. I use following statments for a test. > > >>> import sys > >>> print sys.path > ['', 'C/lib/python2.2/', 'C/lib/python2.2/plat-cygwin', > 'C/lib/python2.2/li

Re: sys.path issue in cygwin

2007-01-24 Thread Jason Tishler
Wang, On Wed, Jan 24, 2007 at 04:14:48PM +0800, Wang Shuhao wrote: > I successfully built and installed Python 2.2.3 in cygwin. > [snip] > Obviously, 'C/lib/python2.2/' is a wrong path. In fact my python is > installed in /usr/local/lib/python2.2.3. The result of the issue is > that when you run a