cancel
Showing results for 
Search instead for 
Did you mean: 

Linux CubeMX python is not working as pre/post code generation script

nobody
Associate II

What I have to do that I can directly call some python scripts as pre/post code generation step with CubeMX 6.14.1 under Linux?

Currently I can execute directly the python script on a Windows Machine, but on the Linux machine nothing happens. On Linux I can execute the scripts directly from command line without CubeMX and I can execute the scripts over a bash script which is calling the python script.

  • Do I need to configure anything additional?
  • Is there a possibility to select which python version is used?
  • Any other hint where my problem could be?

printscreen_UserAction_prePostCodeGeneration.png

Thanks in advance
nobody

 

2 REPLIES 2
KnarfB
Principal III

does your script contain a proper shebang?

has it the executable flag set?

If so and it doesn't work, wrap it in a shell script.

hth

KnarfB

TDK
Guru

Does it work if you use "python ../../helloWorld.py"?

If you feel a post has answered your question, please click "Accept as Solution".