Change ASCII art in AYON mode

This commit is contained in:
Ondřej Samohel 2023-12-07 18:03:30 +01:00 committed by GitHub
parent 355722d04f
commit 483ba26cb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ from openpype.style import load_stylesheet
from openpype.lib import JSONSettingRegistry
openpype_art = """
. . .. . ..
_oOOP3OPP3Op_. .
@ -28,6 +29,18 @@ openpype_art = """
~P3.OPPPO3OP~ . .. .
. ' '. . .. . . . .. .
"""
ayon_art = r"""
· · - =[ by YNPUT ]:[ http://ayon.ynput.io ]= - · ·
"""
@ -42,8 +55,12 @@ class PythonInterpreterRegistry(JSONSettingRegistry):
"""
def __init__(self):
self.vendor = "pypeclub"
self.product = "openpype"
if AYON_SERVER_ENABLED:
self.vendor = "ynput"
self.product = "ayon"
else:
self.vendor = "pypeclub"
self.product = "openpype"
name = "python_interpreter_tool"
path = appdirs.user_data_dir(self.product, self.vendor)
super(PythonInterpreterRegistry, self).__init__(name, path)
@ -390,7 +407,10 @@ class PythonInterpreterWidget(QtWidgets.QWidget):
self._tab_widget = tab_widget
self._line_check_timer = line_check_timer
self._append_lines([openpype_art])
if AYON_SERVER_ENABLED:
self._append_lines([ayon_art])
else:
self._append_lines([openpype_art])
self._first_show = True
self._splitter_size_ratio = None