mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
simplified get build version
This commit is contained in:
parent
77730e8d2b
commit
d22214415c
1 changed files with 1 additions and 3 deletions
|
|
@ -561,13 +561,11 @@ class OpenPypeVersion(semver.VersionInfo):
|
|||
if cls._build_version is None:
|
||||
openpype_root = Path(os.environ["OPENPYPE_ROOT"])
|
||||
build_version_str = BootstrapRepos.get_version(openpype_root)
|
||||
build_version = None
|
||||
if build_version_str:
|
||||
build_version = OpenPypeVersion(
|
||||
cls._build_version = OpenPypeVersion(
|
||||
version=build_version_str,
|
||||
path=openpype_root
|
||||
)
|
||||
cls._build_version = build_version
|
||||
return cls._build_version
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue