how to add current directory to python path code example Example: how append a directory based on current directory python import sys sys.path.append(os.path.abspath('../'))