Python Language os.path Get the parent directory


Example

os.path.abspath(os.path.join(PATH_TO_GET_THE_PARENT, os.pardir))