Comment monter les niveaux dans Path Python

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