Use os.environ to detect CI system

This commit is contained in:
Ivan Kravets
2015-05-25 10:11:28 +03:00
parent 1948a730d9
commit 5d9f81533d

View File

@ -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