python go basck dir code example
Example 1: get the previous working directory in python
path = os.path.dirname(__file__)
print(path)
Example 2: python reference to back folder
os.chdir("../nodes")
path = os.path.dirname(__file__)
print(path)
os.chdir("../nodes")