mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-15 23:07:18 +01:00
Redirect venv warnings from stderr to debug output
The message was disturbing during regular use on NixOS because the file system layout doesn't conform with FHS and sys.base_prefix != sys.prefix.
This commit is contained in:
parent
73662270ea
commit
473f6fd333
@ -271,7 +271,7 @@ class MainCommand(Command):
|
|||||||
|
|
||||||
def load_commands(self):
|
def load_commands(self):
|
||||||
if IN_VENV:
|
if IN_VENV:
|
||||||
output.print_msg("Running in virtual environment, skipping loading plugins installed outside the virtual environment.", print_to="stderr")
|
output.print_msg("Running in virtual environment, skipping loading plugins installed outside the virtual environment.", print_to="debug")
|
||||||
|
|
||||||
for module_prefix, module_path in self.MODULES:
|
for module_prefix, module_path in self.MODULES:
|
||||||
module_path = os.path.expanduser(module_path)
|
module_path = os.path.expanduser(module_path)
|
||||||
@ -10231,7 +10231,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
def _load_plugins(self):
|
def _load_plugins(self):
|
||||||
if IN_VENV:
|
if IN_VENV:
|
||||||
output.print_msg("Running in virtual environment, skipping loading legacy plugins.", print_to="stderr")
|
output.print_msg("Running in virtual environment, skipping loading legacy plugins.", print_to="debug")
|
||||||
return
|
return
|
||||||
|
|
||||||
plugin_dirs = [
|
plugin_dirs = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user