os.path.realpath(path) bug on win7 ?

Discussion in 'Python' started by iMath, Jan 6, 2013.

  1. iMath

    iMath Guest

    os.path.realpath(path)  bug on win7 ?




    Temp.link is a Symbolic link
    Its target location is C:\test\test1
    But 
    >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2')
    'C:\\Users\\SAMSUNG\\Temp.link\\test2'

    I thought the return value should be ' C:\\test\\test1\\test2'

    Is it a bug ? anyone can clear it to me ?
     
    iMath, Jan 6, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peng Yu
    Replies:
    0
    Views:
    505
    Peng Yu
    Oct 31, 2009
  2. Peng Yu
    Replies:
    0
    Views:
    567
    Peng Yu
    Oct 31, 2009
  3. Jurko Gospodnetiæ

    os.path.realpath() and os.path.abspath()

    Jurko Gospodnetiæ, Jan 11, 2011, in forum: Python
    Replies:
    1
    Views:
    565
    Adam Skutt
    Jan 12, 2011
  4. Chris Rebert

    Re: os.path.realpath(path) bug on win7 ?

    Chris Rebert, Jan 6, 2013, in forum: Python
    Replies:
    2
    Views:
    169
    iMath
    Jan 6, 2013
  5. Victor Stinner

    Re: os.path.realpath(path) bug on win7 ?

    Victor Stinner, Jan 6, 2013, in forum: Python
    Replies:
    2
    Views:
    160
    iMath
    Jan 7, 2013
Loading...

Share This Page