diff --git a/src/manifestoo/addons_path.py b/src/manifestoo/addons_path.py index bae7712..ca480c8 100644 --- a/src/manifestoo/addons_path.py +++ b/src/manifestoo/addons_path.py @@ -54,11 +54,17 @@ def extend_from_import_odoo(self, python: str) -> None: output = tempfile.NamedTemporaryFile(delete=False) try: output.close() + stderrpipe = subprocess.DEVNULL + stdoutpipe = subprocess.DEVNULL + if echo.verbosity > 0: + stderrpipe = None + if echo.verbosity > 1: + stdoutpipe = None try: r = subprocess.call( [python, script.name, output.name], - stderr=subprocess.DEVNULL, - stdout=subprocess.DEVNULL, + stderr=stderrpipe, + stdout=stdoutpipe, env=os.environ, ) except FileNotFoundError: