qingxu99 commited on
Commit
6da3289
1 Parent(s): 9f7cf7c

改进环境变量的读取

Browse files
Files changed (1) hide show
  1. 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):