By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,450 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

PYTHONSTARTUP and Cygwin

P: n/a
I tried to set up PYTHONPATH in cygwin but it doesn't work.
Any clue why ?
The following is my session.

$ echo $PYTHONPATH
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ echo $PYTHONSTARTUP
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ python
Python 2.3.3 (#1, Dec 30 2003, 08:29:25)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path

['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-cygwin', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/Numeric']

thanks.
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dwi Sianto Mansjur wrote:
I tried to set up PYTHONPATH in cygwin but it doesn't work.
Any clue why ?
The following is my session.

$ echo $PYTHONPATH
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ echo $PYTHONSTARTUP
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ python
Python 2.3.3 (#1, Dec 30 2003, 08:29:25)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-cygwin', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/Numeric']

thanks.


You probably forgot to export them to put them in the environment?

$ export PYTHONPATH=/c/testwebapp:/c/Steve

sholden@DELLBOY /c/testwebapp/views
$ echo $PYTHONPATH
/c/testwebapp:/c/Steve

sholden@DELLBOY /c/testwebapp/views
$ python
Python 2.3.3 (#1, Dec 30 2003, 08:29:25)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path ['', '/c/testwebapp', '/c/Steve', '/usr/lib/python23.zip',
'/usr/lib/python2.3', '/usr/lib/python2.3/plat-cygwin',
'/usr/lib/python2.3/lib-tk', '/usr/lib/python
2.3/lib-dynload',
'/usr/lib/python2.3/site-packages']


Certainly works for me, anyhow ...

regards
Steve
Jul 18 '05 #2

P: n/a
yes, it works after I use:
export PYTHONPATH=/home/Cherna/DevelopingTools

I set the shell/environment variable in Cywin.bat
I thought that will take car of the business.
But now it works,

Thanks a lot.

Steve Holden <sh*****@holdenweb.com> wrote in message news:<%Sckc.8205$f_5.1627@lakeread01>...
Dwi Sianto Mansjur wrote:
I tried to set up PYTHONPATH in cygwin but it doesn't work.
Any clue why ?
The following is my session.

$ echo $PYTHONPATH
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ echo $PYTHONSTARTUP
/home/Cherna/86_DevelopingTools:/home/Cherna/87_TestingCorpus

$ python
Python 2.3.3 (#1, Dec 30 2003, 08:29:25)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>import sys
>sys.path


['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-cygwin', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/Numeric']

thanks.


You probably forgot to export them to put them in the environment?

$ export PYTHONPATH=/c/testwebapp:/c/Steve

sholden@DELLBOY /c/testwebapp/views
$ echo $PYTHONPATH
/c/testwebapp:/c/Steve

sholden@DELLBOY /c/testwebapp/views
$ python
Python 2.3.3 (#1, Dec 30 2003, 08:29:25)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path ['', '/c/testwebapp', '/c/Steve', '/usr/lib/python23.zip',
'/usr/lib/python2.3', '/usr/lib/python2.3/plat-cygwin',
'/usr/lib/python2.3/lib-tk', '/usr/lib/python
2.3/lib-dynload',
'/usr/lib/python2.3/site-packages'] >>>


Certainly works for me, anyhow ...

regards
Steve

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.