O
O
Oleg2022-04-17 21:45:37
Python
Oleg, 2022-04-17 21:45:37

How to run python script on mac os on click?

Good evening.
Tell me how you can make a python script run on mac os on click. Those. something similar to a bat file in windows. It is necessary that the script be in the folder, run, display print and not close automatically at the end of execution.
I can't seem to find a suitable solution on the Internet.
If you tell me how to do this or show an example of a similar script for mac, I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-04-17
@Oleg_F

Create a command file with the following content:

python3 scriptname.py
read - p "Enter to continue"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question