获取项目的根目录

project:项目名称

ROOT_DIR = os.path.abspath(os.path.dirname(__file__)).split('project')[0]

猜你喜欢

转载自www.cnblogs.com/fh-fendou/p/11866237.html