get the directory path of absolute file path in python,os.path.dirname(fullpath)