chdir python above code example Example 1: python reference to back folder os.chdir("../nodes") Example 2: os.chdir go back import os os.chdir('..')