mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
🐛 use short version
This commit is contained in:
parent
814a55874c
commit
9923e56be5
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ main () {
|
|||
openpype_root=$(dirname $(dirname "$(realpath ${BASH_SOURCE[0]})"))
|
||||
pushd "$openpype_root" > /dev/null || return > /dev/null
|
||||
|
||||
version_command="import os;exec(open(os.path.join('$openpype_root', 'openpype', 'version.py')).read());print(__version__);"
|
||||
version_command="import os;import re;exec(open(os.path.join('$openpype_root', 'openpype', 'version.py')).read());print(re.search(r'(\d+\.\d+.\d+).*', version['__version__'])[1]);"
|
||||
openpype_version="$(python <<< ${version_command})"
|
||||
|
||||
_inside_openpype_tool="1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue