[Zope] Accessing a file on a network drive

Jørgen Larsen jorgen.larsen at ioi.dk
Wed Dec 17 06:13:27 EST 2003


Hi,

I'm trying to open a file from a windows network drive from a external
python script in ZOPE:

The operation looks like this:

fh = Open('\\\\projects/subprojectname/sound/C01-1_FAS_01AS.wav','rb')

I also tried:

fh = Open('\\\\projects\\subprojectname\\sound\\C01-1_FAS_01AS.wav','rb')

Both operation fails with this error:
 Error Type: IOError
 Error Value: [Errno 22] Invalid argument


When I try the two operation above from a standalone python script
everything works fine.

I also tried to open a locale file from my ZOPE script example:
 fh = open('c:\\test.txt','rb')
And this works fine too.


What am I doing wrong?


Best Regards
Jørgen Larsen





More information about the Zope mailing list