зеркало из https://github.com/electron/electron.git
introduce execute_stdout
`execute_stdout` does not return the output of the process. Instead it outputs directly to current stdout (in real-time - to see what is `npm` doing now)
This commit is contained in:
Родитель
743e8331b5
Коммит
a5e1d8c97f
|
@ -144,6 +144,18 @@ def execute(argv):
|
|||
raise e
|
||||
|
||||
|
||||
def execute_stdout(argv):
|
||||
if verbose_mode:
|
||||
print ' '.join(argv)
|
||||
try:
|
||||
subprocess.check_call(argv)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print e.output
|
||||
raise e
|
||||
else:
|
||||
return execute(argv)
|
||||
|
||||
|
||||
def get_atom_shell_version():
|
||||
return subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче