mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
pyblish is launched through avalon tools now
This commit is contained in:
parent
8cf349df97
commit
6e1a4a9987
1 changed files with 7 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ import string
|
||||||
|
|
||||||
from avalon import io
|
from avalon import io
|
||||||
from avalon import api as avalon
|
from avalon import api as avalon
|
||||||
|
from avalon.tools import publish as av_publish
|
||||||
|
|
||||||
import pype
|
import pype
|
||||||
from pypeapp import execute
|
from pypeapp import execute
|
||||||
|
|
@ -70,14 +71,14 @@ def publish(data, gui=True):
|
||||||
"-pp", os.pathsep.join(pyblish.api.registered_paths())
|
"-pp", os.pathsep.join(pyblish.api.registered_paths())
|
||||||
]
|
]
|
||||||
|
|
||||||
if gui:
|
|
||||||
args += ["gui"]
|
|
||||||
|
|
||||||
os.environ["PYBLISH_HOSTS"] = "shell"
|
os.environ["PYBLISH_HOSTS"] = "shell"
|
||||||
os.environ["ASAPUBLISH_INPATH"] = json_data_path
|
os.environ["ASAPUBLISH_INPATH"] = json_data_path
|
||||||
|
|
||||||
returncode = execute([
|
if gui:
|
||||||
sys.executable, "-u", "-m", "pyblish"
|
av_publish.show()
|
||||||
] + args, env=os.environ)
|
else:
|
||||||
|
returncode = execute([
|
||||||
|
sys.executable, "-u", "-m", "pyblish"
|
||||||
|
] + args, env=os.environ)
|
||||||
|
|
||||||
io.uninstall()
|
io.uninstall()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue