Passing a string w/o setting shell=True to Popen results in Python trying to execute a file named something like /cmd arg1 arg2 which is not what you want:
https://github.com/nxp-mcuxpresso/mcux-sdk/blob/cf224e2df8c2d8ae5c4f27743259803c365a6a60/scripts/kconfig/mcux.py#L26
This results for example in FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/scripts/kconfig/menuconfig.py /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/Kconfig' when running make menuconfig in the hello world example (for the rt1020).
This should be changed to either splitting the string into its components, e.g., via shlex.split(command) or by adding shell=True.
Passing a string w/o setting
shell=True
toPopen
results in Python trying to execute a file named something like/cmd arg1 arg2
which is not what you want: https://github.com/nxp-mcuxpresso/mcux-sdk/blob/cf224e2df8c2d8ae5c4f27743259803c365a6a60/scripts/kconfig/mcux.py#L26 This results for example inFileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/scripts/kconfig/menuconfig.py /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/Kconfig'
when runningmake menuconfig
in the hello world example (for the rt1020).This should be changed to either splitting the string into its components, e.g., via
shlex.split(command)
or by addingshell=True
.