[Python-Dev] problems building Python 2.1a1 on QNX 4.25

M.-A. Lemburg mal@lemburg.com
Fri, 26 Jan 2001 23:15:09 +0100


"Andrew M. Kuchling" wrote:
> >The QNX node number prefix '//5' (machine or host number, equivalent to a
> >'hostname:' prefix for network paths) is being reduced somehow (path
> >normalization?) to '/5', so paths don't resolve. 2 slashes ('//') are
> >required at the head of the path. Is this something that can be fixed?
> 
> Ooh, very likely:
> >>> os.path.normpath('//5/foo/bar')
> '/5/foo/bar'
> 
> Isn't // at the root a Unix convention of some sort for some
> network filesystems?  Probably normpath() should just leave it alone.

Samba uses //<hostname>/<mountname>/<path>. os.path.normpath()
should probably leave the leading '//' untouched (having too
many of those in the path doesn't do any harm, AFAIK).
 
-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/