This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symlinks don't work in python???


Steve,

On Fri, Apr 08, 2005 at 01:39:23PM -0400, Steve Ward wrote:
>   (3) Thinking that the realpath bug might be a key
>       to the python import-thru-symlinks problem,
>       I ran a simple test on recent cygwin/python
>       combinations, finding:
> 
>       Cygwin version  Python version  realpath  Import
>              1.5.xx:           2.yy:    Works?  Works?
>       --------------  --------------  --------  ------ 
> 
>               1.5.14             2.4        NO      NO
>               1.5.13           2.3.4       YES      NO
>               1.5.14           2.3.4       YES      NO
>               1.5.12             2.4        NO     YES

I question the results of the last test case above.  I get the
following:

    $ uname -a
    CYGWIN_NT-5.1 stella 1.5.12(0.116/4/2) 2004-11-10 08:34 ...

    $ python -V
    Python 2.4

    $ ls -l
    total 1
    lrwxrwxrwx    1 jt       None            6 Apr 19 08:24 bar.py -> foo.py
    -rw-r--r--    1 jt       None           24 Apr 18 20:13 foo.py

    $ python -c 'import bar'
    Traceback (most recent call last):
      File "<string>", line 1, in ?
    ImportError: No module named bar

See my next post...

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]