os.path.exists discrepancy

Robert Brewer fumanchu at amor.org
Mon Nov 15 03:20:23 EST 2004


Andreas Kostyrka wrote:
> On Sun, Nov 14, 2004 at 11:47:18PM -0800, Robert Brewer wrote:
> > <!-- scan image not found: 
> u'S:/Scans/Projects/2004/TJ/04TJ0267.jpg' -->
> > 
> > As you can see, the two paths are equal. Prompting my 
> reaction: bzuh? My
> > next thought was to read through the os module source--perhaps the
> > import of "path" was dependent on context. It is, but 
> os.path.__file__
> > is the same in both contexts: 'C:\\Python23\\lib\\ntpath.pyc'
> > 
> > Any ideas or workarounds?
>
> Permissions? Even Windows know these nowadays ;) -> and it's probable
> that the Webserver runs with minimal priviledges ;)

Bah. I bet you're right. The webserver runs as LocalSystem, and the
folder in question is a mapped drive on another machine. I'll test that
tomorrow.

Thanks!


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org



More information about the Python-list mailing list