1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 05:38:43 +02:00

Support installing osc into virtualenv

This commit is contained in:
2023-10-13 13:46:44 +02:00
parent 503cf10a84
commit d53b2981c8
4 changed files with 50 additions and 4 deletions

View File

@@ -17,6 +17,9 @@ def print_msg(*args, print_to="debug"):
elif print_to == "stdout":
# print the message to stdout
print(*args)
elif print_to == "stderr":
# print the message to stderr
print(*args, file=sys.stderr)
else:
raise ValueError(f"Invalid value of the 'print_to' option: {print_to}")