KM macro to run a python script

Hi & good day,

I tried to set KM to do the following (Execute Shell Script):

python /Users/okn/Documents/_scr/

This is not executed, - because it is not a Shell Script, probably.

How to write it?


Hey Omar,

Is an actual Python script?

Does it have a proper shebang line?

If so, you should be able to directly execute it with an ‘Execute Script File’ action.

However. It’s possible that the script has shell-dependencies that KM doesn’t provide.

If you send me the script I’ll look.


1 Like

ok, wait I’ll send it now…


Check that the Execute Shell Script action is configured to display the result, and then if there is an error, it should be displayed. Otherwise, perhaps the script is in fact being executed but not doing what you expect.