KDS pre-build scripts and arguments

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KDS pre-build scripts and arguments

Jump to solution
1,391 Views
oaf
Contributor IV

Hi,

 

Running KDS-3.0, I use a Python-script to do some work in my project as a pre-build rule.

Command:

    ${SensBin}\CSprojFix.py --src ${ProjHome}\KDS

 

When I make my project I got this output in the Console window:

 

E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS

process_begin: CreateProcess(E:\Sensors\Common\bin\KDS\CSprojFix.py, E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS, ...) failed.

make (e=193): Error 193

make: [pre-build] Error 193 (ignored)

 

What I don't understand is that the command run by KDS (E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS)

works when run from the windows shell, but not from KDS.....

Labels (1)
0 Kudos
1 Solution
1,157 Views
BlackNight
NXP Employee
NXP Employee

If you type a .py command in the Windows shell (aka DOS prompt), it knows about how to call Python with for it.

Try to add

cmd.exe

in front of your command line, so it launches the windows shell/command prompt.

I hope this helps,

Erich

View solution in original post

0 Kudos
2 Replies
1,158 Views
BlackNight
NXP Employee
NXP Employee

If you type a .py command in the Windows shell (aka DOS prompt), it knows about how to call Python with for it.

Try to add

cmd.exe

in front of your command line, so it launches the windows shell/command prompt.

I hope this helps,

Erich

0 Kudos
1,157 Views
oaf
Contributor IV

Hi,

From a quick test, the error-message has disappeared.

But I'm a little bit curious, if the pre-build command is not running through the cmd.exe what is the intended use then? I mean if evry developer in the world using this, must prepend 'cmd.exe' doesn't seem to be logical....

0 Kudos