包的引入(base版本)

来源:互联网 发布:西门子系统数控编程 编辑:程序博客网 时间:2024/06/16 04:59
#author Fimport osimport sysprint(__file__) #相对路径print(os.path.abspath(__file__)) #绝对路径print(os.path.dirname(os.path.abspath(__file__)))print(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))sys.path.append(BASE_PATH)from conf import settingsfrom core import mainmain.sayHello()

原创粉丝点击