You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
549 B

3 years ago
# !/usr/bin/env python3
# -*- encoding : utf-8 -*-
# @Filename : __init__.py
# @Software : VSCode
# @Datetime : 2021/11/03 17:01:05
# @Author : leo liu
# @Version : 1.0
# @Description :
import os
# 获取环境变量
env = os.getenv("ENV", "")
if env:
# 如果有虚拟环境 则是 生产环境
print("----------生产环境启动------------")
from .production_config import config
else:
# 没有则是开发环境
print("----------开发环境启动------------")
from .development_config import config