From 8fdb1817a7334c9721c5401ce6232acc388e6c8b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 15 Mar 2023 15:00:35 -0500 Subject: [PATCH] fix: use echo/error not print --- src/viv/viv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 968b71d..5e31522 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -807,7 +807,7 @@ class Viv: """create import statement from package spec""" if not args.reqs: - print("must specify a requirement") + error("must specify a requirement") sys.exit(1) generate_import( @@ -848,7 +848,7 @@ class Viv: pip_path, python_path = (vivenv.path / "bin" / cmd for cmd in ("pip", "python")) # todo check for vivenv - print(f"executing command within {args.vivenv}") + echo(f"executing command within {args.vivenv}") cmd = ( f"{pip_path} {' '.join(args.cmd)}"