mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: add function to get flame version and root install path
This commit is contained in:
parent
9fa024daae
commit
4a230b710e
2 changed files with 20 additions and 1 deletions
|
|
@ -30,7 +30,9 @@ from .lib import (
|
|||
get_padding_from_path
|
||||
)
|
||||
from .utils import (
|
||||
setup
|
||||
setup,
|
||||
get_flame_version,
|
||||
get_flame_install_root
|
||||
)
|
||||
from .pipeline import (
|
||||
install,
|
||||
|
|
@ -107,6 +109,8 @@ __all__ = [
|
|||
|
||||
# utils
|
||||
"setup",
|
||||
"get_flame_version",
|
||||
"get_flame_install_root",
|
||||
|
||||
# menu
|
||||
"FlameMenuProjectConnect",
|
||||
|
|
|
|||
|
|
@ -125,3 +125,18 @@ def setup(env=None):
|
|||
_sync_utility_scripts(env)
|
||||
|
||||
log.info("Flame OpenPype wrapper has been installed")
|
||||
|
||||
|
||||
def get_flame_version():
|
||||
import flame
|
||||
|
||||
return {
|
||||
"full": flame.get_version(),
|
||||
"major": flame.get_version_major(),
|
||||
"minor": flame.get_version_minor(),
|
||||
"patch": flame.get_version_patch()
|
||||
}
|
||||
|
||||
|
||||
def get_flame_install_root():
|
||||
return "/opt/Autodesk"
|
||||
Loading…
Add table
Add a link
Reference in a new issue