how to go up levels in path python

34

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

Comments

Submit
0 Comments