[Tutor] python equivalent of perl readlink()?
Bill Campbell
bill at celestial.net
Sun Oct 15 07:51:42 CEST 2006
Is there a python equivalent of the perl readlink() function
(e.g. one that returns the relative path in cases where a command
such as ``ln -s ls /usr/local/bin/gls'' created the link?
Reading the documentation on the various os.path functions, the
only thing I see returns the fully resolved path rather than the
relative one (/usr/local/bin/ls in the case above).
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``It's time to feed the hogs''
-- Unintended Consequences
More information about the Tutor
mailing list