PYTHONSTARTUP and Cygwin
Steve Holden
sholden at holdenweb.com
Thu Apr 29 15:42:20 EDT 2004
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 at DELLBOY /c/testwebapp/views
$ echo $PYTHONPATH
/c/testwebapp:/c/Steve
sholden at 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
More information about the Python-list
mailing list