bugfix: strip environment value

This commit is contained in:
debugtalk
2018-06-11 20:00:37 +08:00
parent 9dc53313e1
commit 6539640fc5
3 changed files with 4 additions and 2 deletions

View File

@@ -513,7 +513,8 @@ def load_dot_env_file(path):
with io.open(path, 'r', encoding='utf-8') as fp:
for line in fp:
variable, value = line.split("=")
os.environ[variable] = value
variable = variable.strip()
os.environ[variable] = value.strip()
logger.log_debug("Loaded variable: {}".format(variable))
def validate_json_file(file_list):