cwd = os.getcwd()
print(cwd)
print(os.path.basename(cwd))
print(os.path.dirname(cwd))