Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Allow disabling of printing to console via settings (or env var)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Feb 4, 2022
1 parent 3584f2d commit f13c83e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions openpype/tools/pyblish_pype/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@

# Allow animations in GUI
Animated = env_variable_to_bool("OPENPYPE_PYBLISH_ANIMATED", True)

# Print UI info message to console
PrintInfo = env_variable_to_bool("OPENPYPE_PYBLISH_PRINT_INFO", True)
6 changes: 3 additions & 3 deletions openpype/tools/pyblish_pype/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,9 @@ def info(self, message):
self.animation_info_msg.stop()
self.animation_info_msg.start()

# TODO(marcus): Should this be configurable? Do we want
# the shell to fill up with these messages?
util.u_print(message)
if settings.PrintInfo:
# Print message to console
util.u_print(message)

def warning(self, message):
"""Block processing and print warning until user hits "Continue"
Expand Down

0 comments on commit f13c83e

Please sign in to comment.