UNC paths in file object open

Graham gsmith at oxfam.org.uk
Fri Mar 12 18:40:35 CET 2004

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
+44 (1865) 313255
gsmith at oxfam.org.uk

More information about the Python-list mailing list