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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar committed Jun 1, 2021
2 parents 103187d + c64bd40 commit 76aeffb
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,27 @@
import certifi # noqa: E402


term = blessed.Terminal()


def _print(message: str):
if message.startswith("!!! "):
print("{}{}".format(term.orangered2("!!! "), message[4:]))
if message.startswith(">>> "):
print("{}{}".format(term.aquamarine3(">>> "), message[4:]))
if message.startswith("--- "):
print("{}{}".format(term.darkolivegreen3("--- "), message[4:]))
if message.startswith(" "):
print("{}{}".format(term.darkseagreen3(" "), message[4:]))
if message.startswith("*** "):
print("{}{}".format(term.gold("*** "), message[4:]))
if message.startswith(" - "):
print("{}{}".format(term.wheat(" - "), message[4:]))
if message.startswith(" . "):
print("{}{}".format(term.tan(" . "), message[4:]))
if sys.__stdout__:
term = blessed.Terminal()

def _print(message: str):
if message.startswith("!!! "):
print("{}{}".format(term.orangered2("!!! "), message[4:]))
if message.startswith(">>> "):
print("{}{}".format(term.aquamarine3(">>> "), message[4:]))
if message.startswith("--- "):
print("{}{}".format(term.darkolivegreen3("--- "), message[4:]))
if message.startswith(" "):
print("{}{}".format(term.darkseagreen3(" "), message[4:]))
if message.startswith("*** "):
print("{}{}".format(term.gold("*** "), message[4:]))
if message.startswith(" - "):
print("{}{}".format(term.wheat(" - "), message[4:]))
if message.startswith(" . "):
print("{}{}".format(term.tan(" . "), message[4:]))
else:
def _print(message: str):
print(message)


# if SSL_CERT_FILE is not set prior to OpenPype launch, we set it to point
Expand Down

0 comments on commit 76aeffb

Please sign in to comment.