I was using python 2.6 for a script, but for requirement limitations I have to downgrade my script to python 2.5, how can I get the relative path using python 2.5?
I was previously using:
os.path.relpath(path[, start])
But since this is new from 2.6 I can’t use it anymore.
Thanks and regards!
Try Relative paths in Python it should have valuable information to you.
EDIT: Found something more http://www.saltycrane.com/blog/2010/03/ospathrelpath-source-code-python-25/
It is a re-implementation by James Gardner: