python 获取项目的根路径

root_path = os.path.abspath(os.path.dirname(__file__)).split('shippingSchedule')[0]
shippingSchedule 为项目名字
posted @ 2019-03-31 19:17  AngDH  阅读(15980)  评论(0编辑  收藏  举报