Move process related helpers to "proc" module

This commit is contained in:
Ivan Kravets
2019-05-16 21:03:15 +03:00
parent aaf61082c1
commit 971049b41c
16 changed files with 190 additions and 157 deletions

View File

@@ -17,8 +17,8 @@ from os.path import join
from subprocess import CalledProcessError, check_call
from sys import modules
from platformio import util
from platformio.exception import PlatformioException, UserSideException
from platformio.proc import exec_command
try:
from urllib.parse import urlparse
@@ -109,7 +109,7 @@ class VCSClientBase(object):
args = [self.command] + args
if "cwd" not in kwargs:
kwargs['cwd'] = self.src_dir
result = util.exec_command(args, **kwargs)
result = exec_command(args, **kwargs)
if result['returncode'] == 0:
return result['out'].strip()
raise PlatformioException(