mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
post standalone paths to process
This commit is contained in:
parent
cd7b598361
commit
e1ef2aad24
2 changed files with 12 additions and 2 deletions
|
|
@ -34,4 +34,8 @@ class StandAlonePublishModule:
|
|||
os.path.dirname(tools.__file__),
|
||||
"standalonepublish"
|
||||
)
|
||||
subprocess.Popen([sys.executable, standalone_publisher_tool_path])
|
||||
subprocess.Popen([
|
||||
sys.executable,
|
||||
standalone_publisher_tool_path,
|
||||
os.pathsep.join(self.publish_paths).replace("\\", "/")
|
||||
])
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
import os
|
||||
import sys
|
||||
import app
|
||||
import signal
|
||||
from Qt import QtWidgets
|
||||
from avalon import style
|
||||
import pype
|
||||
import pyblish.api
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
qt_app = QtWidgets.QApplication(sys.argv[1:])
|
||||
pype.install()
|
||||
qt_app = QtWidgets.QApplication([])
|
||||
# app.setQuitOnLastWindowClosed(False)
|
||||
qt_app.setStyleSheet(style.load_stylesheet())
|
||||
|
||||
|
|
@ -17,6 +21,8 @@ if __name__ == "__main__":
|
|||
signal.signal(signal.SIGINT, signal_handler)
|
||||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
|
||||
for path in sys.argv[-1].split(os.pathsep):
|
||||
pyblish.api.register_plugin_path(path)
|
||||
window = app.Window()
|
||||
window.show()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue