EADST

Add Python Project Path as System Path

Add Python Project Path as System Path

import os
import sys
__dir__ = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.abspath(os.path.join(__dir__, '../')))
# /root/project/subfolder/code.py
# add "/root/project/"
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文269篇,共被浏览446363

本站已经建立2028天!

热门文章
文章归档
回到顶部