Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36229

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

References <tencent_6C37ED3974F3E81C56E5D98D@qq.com>
Date 2013-01-05 23:06 -0800
Subject Re: os.path.realpath(path) bug on win7 ?
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.158.1357455979.2939.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Jan 5, 2013 at 10:55 PM, iMath <2281570025@qq.com> wrote:
>
> 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 ?

What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report?

Cheers,
Chris

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: os.path.realpath(path) bug on win7 ? Chris Rebert <clp2@rebertia.com> - 2013-01-05 23:06 -0800
  Re: os.path.realpath(path) bug on win7 ? iMath <redstone-cold@163.com> - 2013-01-06 00:11 -0800
  Re: os.path.realpath(path) bug on win7 ? iMath <redstone-cold@163.com> - 2013-01-06 00:11 -0800

csiph-web