Python launcher Icon every time a script runs I've had a MacBook given to me from work for over a year now and recently I got a new mac and every time I launch a python script the python launcher icon appears in the mac dock.
However, in the old MacBook, this behaviour doesn't exist. Both running the exact same script.
I'm not sure if there was a setting I changed or something else on the old one to disable this behaviour.
I've read this question: How to get rid of Python Launcher icon every time a script runs? But I'm mostly confused why my old MacBook doesn't encounter this.
They are both running the exact same version of macOS: 10.15.6 (19G73)
If its important I installed Python on the new one by the installer(provided by python.org) and I used homebrew on the old one.
Well, it sure seems the difference is caused by different methods of installing Python. If your systems are identical then its caused by Python itself. You could try installing python via homebrew on your new machine and see if the behavior changes. You should run python in a virtual environment. If you do that you can have multiple versions of python3 on your machine.
How are you running Python?  If you run it from the command line you may not have this happen. Are you trying to stop this behavior or are you just curious why it happens? If you are trying to stop it then use the file you link to in your question.