Commit a07f91a
committed
bot: github: Add 'west_update_env' parameter to git config
When using a separate Python virtual environment for the project and
AutoPTS, and the 'west' tool is not installed globally, the 'west update'
command in update_repos fails because 'west' is not visible.
The new 'west_update_env' parameter allows specifying a Python environment
to activate before running 'west update', ensuring the command works in
isolated setups.
Example usage in config.py:
z['git'] = {
'zephyr': {
'path': f'{HOME_PATH}/zephyrproject/zephyr',
'remote': 'origin',
'branch': 'main',
'stash_changes': True,
'update_repo': True,
'west_update': True,
'west_update_env': 'source {HOME_PATH}/zephyrproject/.venv/bin/activate',
},
}1 parent ee3dda5 commit a07f91a
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
0 commit comments