From 5d9f81533dbdd4ff01455f40991dc4d456211759 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 25 May 2015 10:11:28 +0300 Subject: [PATCH] Use os.environ to detect CI system --- platformio/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platformio/util.py b/platformio/util.py index e07538ba..d999380e 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -176,7 +176,7 @@ def change_filemtime(path, time): def is_ci(): - return os.getenv("CI", "").lower() == "true" + return os.environ.get("CI", "").lower() == "true" def exec_command(*args, **kwargs): @@ -189,8 +189,7 @@ def exec_command(*args, **kwargs): default = dict( stdout=subprocess.PIPE, stderr=subprocess.PIPE, - shell=system() == "Windows", - env=os.environ + shell=system() == "Windows" ) default.update(kwargs) kwargs = default