Merge branch 'develop' of https://github.com/ivankravets/platformio into feature/platform-stm32

This commit is contained in:
Valeriy Koval
2015-01-29 18:54:50 +02:00

View File

@ -37,7 +37,7 @@ def get_home_dir():
pass
if not home_dir:
home_dir = expanduser("~/.platformio")
home_dir = join(expanduser("~"), ".platformio")
if not isdir(home_dir):
makedirs(home_dir)
@ -85,9 +85,12 @@ def change_filemtime(path, time):
utime(path, (time, time))
def exec_command(args):
use_shell = system() == "Windows"
p = Popen(args, stdout=PIPE, stderr=PIPE, shell=use_shell)
def exec_command(*args, **kwargs):
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
kwargs['shell'] = system() == "Windows"
p = Popen(*args, **kwargs)
out, err = p.communicate()
return dict(out=out.strip(), err=err.strip())