python change to relative path 2.7 code example Example: relative path python import sys,os sys.path.append(os.path.realpath('..'))