how to get a path relative to a folder in python code example Example: relative path python import sys,os sys.path.append(os.path.realpath('..'))