|
@@ -17,6 +17,7 @@ var (
|
|
|
PYTHON_MYSQL_USER string //python数据库链接账号
|
|
|
PYTHON_MYSQL_PASSWD string //python数据库链接密码
|
|
|
PYTHON_MYSQL_DB string //python数据库链接数据库名
|
|
|
+ PYTHON_PATH string //python可执行文件地址
|
|
|
|
|
|
REDIS_CACHE string //缓存地址
|
|
|
Rc *cache.Cache //redis缓存
|
|
@@ -61,6 +62,7 @@ func init() {
|
|
|
PYTHON_MYSQL_USER = config["python_mysql_user"]
|
|
|
PYTHON_MYSQL_PASSWD = config["python_mysql_passwd"]
|
|
|
PYTHON_MYSQL_DB = config["python_mysql_db"]
|
|
|
+ PYTHON_PATH = config["python_path"]
|
|
|
|
|
|
REDIS_CACHE = config["beego_cache"]
|
|
|
if len(REDIS_CACHE) <= 0 {
|