python 自定义模块路径问题

import sys                  ##导入sys模块
sys.path.append(r"/data/gaof-j/regression_testing/git/cost_parser_tools/cost_estimation_training/parser_util/source_code")   ##指向需要导入的模块的路径,即可导入自定义模块

原文地址:https://www.cnblogs.com/sxgaofeng/p/13495473.html