import os print(os.getcwd()) OUTPUT: /kite/run path_parent = os.path.dirname(os.getcwd()) os.chdir(path_parent) print(os.getcwd()) OUTPUT: /kite