print(os. getcwd()) path_parent = os. path. dirname(os. getcwd()) os. chdir(path_parent) print(os. getcwd())