From 1948a730d9bc2d7be9d4cb7ec5009c1d5d6109a6 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 25 May 2015 09:50:37 +0300 Subject: [PATCH] Pass environment variables to subprocess --- platformio/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio/util.py b/platformio/util.py index 6477df7e..e07538ba 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -189,7 +189,8 @@ def exec_command(*args, **kwargs): default = dict( stdout=subprocess.PIPE, stderr=subprocess.PIPE, - shell=system() == "Windows" + shell=system() == "Windows", + env=os.environ ) default.update(kwargs) kwargs = default