改进环境变量的读取
Browse files- toolbox.py +1 -1
toolbox.py
CHANGED
@@ -551,7 +551,7 @@ def read_env_variable(arg, default_value):
|
|
551 |
elif isinstance(default_value, float):
|
552 |
r = float(env_arg)
|
553 |
elif isinstance(default_value, str):
|
554 |
-
r = env_arg
|
555 |
elif isinstance(default_value, dict):
|
556 |
r = eval(env_arg)
|
557 |
elif isinstance(default_value, list):
|
|
|
551 |
elif isinstance(default_value, float):
|
552 |
r = float(env_arg)
|
553 |
elif isinstance(default_value, str):
|
554 |
+
r = env_arg.strip()
|
555 |
elif isinstance(default_value, dict):
|
556 |
r = eval(env_arg)
|
557 |
elif isinstance(default_value, list):
|