def get_parent_dir(name):
parent_dir = os.path.dirname(os.path.dirname(name))<EOL>if parent_dir:<EOL><INDENT>return parent_dir<EOL><DEDENT>return os.path.abspath('<STR_LIT:.>')<EOL>
Get the parent directory of a filename.