mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-26 10:50:12 +08:00
Merge branch 'bugfix' of https://github.com/httprunner/HttpRunner into bugfix
This commit is contained in:
@@ -191,10 +191,11 @@ def load_dot_env_file():
|
||||
env_variables_mapping = {}
|
||||
with io.open(path, 'r', encoding='utf-8') as fp:
|
||||
for line in fp:
|
||||
# maxsplit=1
|
||||
if "=" in line:
|
||||
variable, value = line.split("=", maxsplit=1)
|
||||
variable, value = line.split("=", 1)
|
||||
elif ":" in line:
|
||||
variable, value = line.split(":", maxsplit=1)
|
||||
variable, value = line.split(":", 1)
|
||||
else:
|
||||
raise exceptions.FileFormatError(".env format error")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user