Download:
child 12:2ea3583bd611
parent 10:3e63f239a827
11:86067e7580c6
Anton Shestakov <av6@dwimlabs.net>, Mon, 13 Jun 2016 23:38:17 +0800
checker: use run(silent=False) instead of print_and_run()

1 файлов изменено, 1 вставок(+), 6 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Mon Jun 13 23:35:59 2016 +0800
+++ b/checker.py Mon Jun 13 23:38:17 2016 +0800
@@ -14,11 +14,6 @@
rel = lambda *x: os.path.abspath(os.path.join(os.path.dirname(__file__), *x))
-def print_and_run(args):
- print('$ ' + ' '.join(args))
- check_call(args)
-
-
def run_ignore_1(fn, args):
try:
return fn(args)
@@ -87,7 +82,7 @@
print('# C&O task: setup')
venv = '../venv'
- print_and_run(['virtualenv', venv])
+ run(['virtualenv', venv])
pip = os.path.join(venv, 'bin', 'pip')
for linter in config['linters']:
if 'pip' in linter: