added projectmanager to openpype cli commands

This commit is contained in:
iLLiCiTiT 2021-05-07 15:13:50 +02:00
parent 5eb439b3b3
commit 70ed7abeb5
3 changed files with 29 additions and 0 deletions

View file

@ -224,6 +224,11 @@ def launch(app, project, asset, task,
PypeCommands().run_application(app, project, asset, task, tools, arguments)
@main.command(context_settings={"ignore_unknown_options": True})
def projectmanager():
PypeCommands().launch_project_manager()
@main.command(
context_settings=dict(
ignore_unknown_options=True,

View file

@ -110,6 +110,12 @@ class PypeCommands:
with open(output_json_path, "w") as file_stream:
json.dump(env, file_stream, indent=4)
@staticmethod
def launch_project_manager():
from openpype.tools import project_manager
project_manager.main()
def texture_copy(self, project, asset, path):
pass

View file

@ -0,0 +1,18 @@
<#
.SYNOPSIS
Helper script OpenPype Tray.
.DESCRIPTION
.EXAMPLE
PS> .\run_tray.ps1
#>
$current_dir = Get-Location
$script_dir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$openpype_root = (Get-Item $script_dir).parent.FullName
Set-Location -Path $openpype_root
& poetry run python "$($openpype_root)\start.py" projectmanager
Set-Location -Path $current_dir