引用自定义模块,,报ModuleNotFoundError: No module named “XXXX”
在 # -- coding=utf-8 --之后,紧跟以下代码块
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
引用自定义模块,,报ModuleNotFoundError: No module named “XXXX”
在 # -- coding=utf-8 --之后,紧跟以下代码块
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)