import os import sys reload(sys) cwd = os.getcwd() sys.path.append(cwd) sys.setdefaultencoding("utf-8")