I'm working on a project where I need to create a Keyboard Maestro macro to run a Python script called Main2.py. the Main2.py is inside pycharm project call CorrectSpelling,
the Main2.py python code is very simple : the code i just one line :print(3+7)
the `Main2.py Absolute Path is : /Users/guyatia/PycharmProjects/ColorPaletteGeneratorProject/Main2.py
the CorrectSpelling project Absolute Path is : /Users/guyatia/PycharmProjects/ColorPaletteGeneratorProject
when i run it on my mac terminal i give the output (the number 10) , in the terminal i just type in the first commend : cd /Users/guyatia/PycharmProjects/ColorPaletteGeneratorProject
then in the second commend i type : python Main2.py and then it give me the outcome (the number 10)
Unfortunately, it's not working as expected. When I trigger the macro, nothing seems to happen.
I have confirmed that I have Python installed on my system
Could someone please guide me on how to set up the Keyboard Maestro macro correctly to run the Main2.py script and provide any troubleshooting steps if necessary?
where i specified the full path to the python interpreter ?
here my macro in the screenshot i upload:
in the screenshot you will see the Execute Shell Script commend
and in the Shell Script commend you will see:
in first commend to the path of the project of pycharm, the file math66.py is there (cd /Users/guyatia/PycharmProjects/ColorPaletteGeneratorProject
and the second command to activate math66.py :(python math66.py)
please where i give the full path to the python interpreter