mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
renamed 'get_build_version' to 'get_installed_version' in openpype
This commit is contained in:
parent
53e362f3db
commit
3f4510a9c9
2 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ Access to logic from igniter is available only for OpenPype processes.
|
|||
Is meant to be able check OpenPype versions for studio. The logic is dependent
|
||||
on igniter's inner logic of versions.
|
||||
|
||||
Keep in mind that all functions except 'get_build_version' does not return
|
||||
Keep in mind that all functions except 'get_installed_version' does not return
|
||||
OpenPype version located in build but versions available in remote versions
|
||||
repository or locally available.
|
||||
"""
|
||||
|
|
@ -24,13 +24,13 @@ def op_version_control_available():
|
|||
return True
|
||||
|
||||
|
||||
def get_build_version():
|
||||
def get_installed_version():
|
||||
"""Get OpenPype version inside build.
|
||||
|
||||
This version is not returned by any other functions here.
|
||||
"""
|
||||
if op_version_control_available():
|
||||
return get_OpenPypeVersion().get_build_version()
|
||||
return get_OpenPypeVersion().get_installed_version()
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from openpype.lib.openpype_version import (
|
||||
get_remote_versions,
|
||||
get_OpenPypeVersion,
|
||||
get_build_version
|
||||
get_installed_version
|
||||
)
|
||||
from .input_entities import TextEntity
|
||||
from .lib import (
|
||||
|
|
@ -72,7 +72,7 @@ class ProductionVersionsInputEntity(OpenPypeVersionInput):
|
|||
|
||||
def _get_openpype_versions(self):
|
||||
versions = get_remote_versions(staging=False, production=True)
|
||||
versions.append(get_build_version())
|
||||
versions.append(get_installed_version())
|
||||
return sorted(versions)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue