pychorm newspaper ModuleNotFoundError: No module named 'util.runmethod' error

Solution:

 

import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)

Guess you like

Origin www.cnblogs.com/try-chi/p/11879437.html