[python-win32] Windows programing cookbook?

Tim Golden mail at timgolden.me.uk
Wed Apr 16 18:23:33 CEST 2008


Bill Sneddon wrote:
> Right know I am interested in finding out how to
> access a windows server share in Python 2.4.  Seems to
> work fine in Python 2.5 with win32 installed, but the
> MoinMoin server at work has not been upgraded. 
> The problem is this open can not use this kind of
> path.

OK. There's absolutely no reason why -- with or
without pywin32 installed -- Python shouldn't be
able to open a share in the way you describe.
Just to make absolutely sure, I've just installed a
vanilla Python 2.4.4 from python.org, no extensions,
nothing.

<dump>
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> open (r"\\vogbp393\c$\boot.ini", "r")
<open file '\\vogbp393\c$\boot.ini', mode 'r' at 0x00A7A410>
>>>
</dump>

No problem. Are you sure there isn't something else
in the way? Permissions? Connectivity, even? What
error are you getting? Can you dump the traceback?

TJG


More information about the python-win32 mailing list