Commit 970d6242 authored by ibuler's avatar ibuler

[Update] 修改配置文件环境变量获取

parent 97580310
......@@ -296,6 +296,8 @@ class Config(dict):
return value
value = os.environ.get(item, None)
if value is not None:
if value.isdigit():
value = int(value)
return value
return self.defaults.get(item)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment