Skip to content

Commit

Permalink
Fix framework version extraction
Browse files Browse the repository at this point in the history
Resolves #25
  • Loading branch information
valeros authored Dec 26, 2024
1 parent 140a9cd commit 8d0b818
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/platformio/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,9 @@ def get_zephyr_venv_dir():
# conflicts and unnecessary reinstallation of Python dependencies in
# PlatformIO venv
zephyr_version = version.get_original_version(
platform.get_package_version("framework-zephyr")
str(
platform.get_package("framework-zephyr").metadata.version.truncate()
)
)
return os.path.join(
env.subst("$PROJECT_CORE_DIR"), "penv", ".zephyr-" + zephyr_version
Expand Down

0 comments on commit 8d0b818

Please sign in to comment.