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

Jurko Gospodnetić jurko.gospodnetic at pke.hr
Tue Jan 11 06:35:50 EST 2011


   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.realpath(x)) when we want to convert x to its 
full/canonical name?

   Best regards,
     Jurko Gospodnetić




More information about the Python-list mailing list