Skip to content

startup_error

main()

Show message that server does not have set bundle to use.

It is possible to pass url as argument to show it in the message. To use this feature, pass --url <url> as argument to this script.

Source code in common/ayon_common/startup/ui/startup_error.py
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
def main():
    """Show message that server does not have set bundle to use.

    It is possible to pass url as argument to show it in the message. To use
        this feature, pass `--url <url>` as argument to this script.
    """

    filepath = sys.argv[-1]
    with open(filepath, "r") as stream:
        data = json.load(stream)

    app = get_qt_app()
    window = MessageWindow(data["title"], data["message"], data["detail"])
    window.show()
    app.exec_()