west: runners: stm32cubeprogrammer: Fixed behaivor if programmer is in path
Enabled west commands to use CubeProgrammer installed in custom directory. Signed-off-by: Moritz Geier <moritz.geier@proton.me>
This commit is contained in:
parent
b0936ae353
commit
da87952948
|
@ -85,6 +85,10 @@ class STM32CubeProgrammerBinaryRunner(ZephyrBinaryRunner):
|
|||
)
|
||||
|
||||
if platform.system() == "Windows":
|
||||
cmd = shutil.which("STM32_Programmer_CLI")
|
||||
if cmd is not None:
|
||||
return Path(cmd)
|
||||
|
||||
cli = (
|
||||
Path("STMicroelectronics")
|
||||
/ "STM32Cube"
|
||||
|
|
Loading…
Reference in New Issue