Skip to content

distribution_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/distribution/ui/distribution_error.py
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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["sub_message"],
    )
    window.show()
    app.exec_()