python 文件调用其他路径
#!/usr/bin/env python#-*-coding:utf-8-*-# wanghuiimport osimport sys
BASE_DIR = os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) )
sys.path.append(BASE_DIR)
from conf import settings
from core import main
main.login()123456789101112
页:
[1]