Re: os.path.realpath() and os.path.abspath()

2011-01-11 Thread Adam Skutt
On Jan 11, 6:35 am, Jurko Gospodnetić wrote: >    Hi all. > >    os.path.realpath() documentation states that it returns a 'canonical' > path. Does that infer that it returns an absolute path? > A canonical path is supposed to be absolute and at least Python 2.7.1 ensures that is the case. Histo

os.path.realpath() and os.path.abspath()

2011-01-11 Thread Jurko Gospodnetić
Hi all. os.path.realpath() documentation states that it returns a 'canonical' path. Does that infer that it returns an absolute path? I have not found seen any implementation that does not return an absolute path, but can this be counted on? Or should we use os.path.abspath(os.path.rea