UNC paths in file object open

F. GEIGER fgeiger at datec.at
Fri Mar 12 13:14:00 EST 2004


What's the error? Can you provide a trceback?

Regards
Franz

P.S.: Im not sure but accessing a share on a machine NOT connected to a
network doesn't work since 2k and XP (worked on NT, though).

"Graham" <gsmith at oxfam.org.uk> schrieb im Newsbeitrag
news:4051f619$0$6547$ed9e5944 at reading.news.pipex.net...
> I ma trying to open a file on a network share
>
> ie \\servername\share\folder\file
>
> afile = open( \\server\share\folder\file, "r" )
>
> have also tried
> afile = open( //server/share/folder/file, "r" ) # as per the Python
cookbook
> advice on page 113 namely " use / regardless of the proclivities of the
> underlying operating system".
>
> Neither work.
>
> I am running python on XP and accessing win 2000 share.
>
> Thanks for any help
>
> Graham Smith
>
> PeopleSoft Technical Team Leader
> OXFAM GB
> +44 (1865) 313255
> gsmith at oxfam.org.uk
>
>
>





More information about the Python-list mailing list