Want to move up one directory from a given directory. I achieve this by doing:
import os
os.chdir(given_dir)
os.chdir('..')
But, I was wondering if there was a better more explicit way using (ideally) one statement or if there exists a built-in feature that I may not be aware of.