Strip equal signs from envvars (Closes #1699)

This commit is contained in:
Mathieu Comandon 2019-02-03 00:14:00 -08:00
parent 20620e54e3
commit 3582df7cd8

View file

@ -96,7 +96,7 @@ class MonitoredCommand:
# processes.
for key, value in self.env.items():
self.original_env[key] = os.environ.get(key)
os.environ[key] = str(value)
os.environ[key.strip("=")] = str(value)
# Reset library paths if they were not provided
if not any([key in self.env for key in ("LD_LIBRARY_PATH", "LD_PRELOAD")]):