Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Core: Headless publish failing without GL lib #6205

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openpype/pype_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def publish(paths, targets=None, gui=False):
install_openpype_plugins,
get_global_context,
)
from openpype.tools.utils.host_tools import show_publish
from openpype.tools.utils.lib import qt_app_context

# Register target and host
import pyblish.api
Expand Down Expand Up @@ -150,6 +148,8 @@ def publish(paths, targets=None, gui=False):
print(plugin)

if gui:
from openpype.tools.utils.host_tools import show_publish
from openpype.tools.utils.lib import qt_app_context
with qt_app_context():
show_publish()
else:
Expand Down
Loading