mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
* set 'QT_SCALE_FACTOR_ROUNDING_POLICY' to 'PassThrough' * implemented 'get_openpype_qt_app' which set all openpype related attributes * implemented get app functions in igniter and ayon common * removed env varaibles 'QT_SCALE_FACTOR_ROUNDING_POLICY' * formatting fixes * fix line length * fix args
28 lines
670 B
Python
28 lines
670 B
Python
import click
|
|
|
|
from openpype.tools.utils import get_openpype_qt_app
|
|
from openpype.tools.push_to_project.window import PushToContextSelectWindow
|
|
|
|
|
|
@click.command()
|
|
@click.option("--project", help="Source project name")
|
|
@click.option("--version", help="Source version id")
|
|
def main(project, version):
|
|
"""Run PushToProject tool to integrate version in different project.
|
|
|
|
Args:
|
|
project (str): Source project name.
|
|
version (str): Version id.
|
|
"""
|
|
|
|
app = get_openpype_qt_app()
|
|
|
|
window = PushToContextSelectWindow()
|
|
window.show()
|
|
window.controller.set_source(project, version)
|
|
|
|
app.exec_()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|