mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
11 lines
417 B
Python
11 lines
417 B
Python
try:
|
|
from openpype.api import Logger
|
|
import openpype.lib.remote_publish
|
|
except ImportError as exc:
|
|
# Ensure Deadline fails by output an error that contains "Fatal Error:"
|
|
raise ImportError("Fatal Error: %s" % exc)
|
|
|
|
if __name__ == "__main__":
|
|
# Perform remote publish with thorough error checking
|
|
log = Logger.get_logger(__name__)
|
|
openpype.lib.remote_publish.publish(log, raise_error=True)
|