fix '__main__.py'

This commit is contained in:
Jakub Trllo 2024-02-06 16:52:30 +01:00
parent cd233c42f5
commit f673ff6071

View file

@ -1,14 +1,7 @@
# -*- coding: utf-8 -*-
"""Main entry point for Pype command."""
from . import cli
import sys
import traceback
"""Main entry point for AYON command."""
from ayon_core import cli
if __name__ == '__main__':
try:
cli.main(obj={}, prog_name="pype")
except Exception:
exc_info = sys.exc_info()
print("!!! Pype crashed:")
traceback.print_exception(*exc_info)
sys.exit(1)
if __name__ == "__main__":
cli.main()