mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
fix '__main__.py'
This commit is contained in:
parent
cd233c42f5
commit
f673ff6071
1 changed files with 5 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue