Possible Duplicate:
How to calculate relative path between 2 directory path?
I need to compute the relative path from one directory to another (i.e. I set a path relative to the working directory, and want to compute the according relative path from any parent/subdir). What is a good way to do that in Python? I could not find much on the subject.
Thanks!
You should take a look at:
os.path.relpath