踏遍青山
Log in
Main
Python学习
增加包的搜索路径的代码
root
abc abc
15 Jul
import sys, os.path
sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
import sys, os.path
sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))