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

Commit

Permalink
Merge pull request #6205 from fabiaserra/bugfix/headless_publish_qt
Browse files Browse the repository at this point in the history
Core: Headless publish failing without GL lib
  • Loading branch information
antirotor authored Mar 25, 2024
2 parents ef33105 + 95bd7e3 commit 6740d29
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 6740d29

Please sign in to comment.