What arguments was Python called with?

Farewell to my first big PR for Werkzeug , made in 2018. Now that Python 3.9 is EOL, I'm able to remove that giant hack and replace it with a single line of code. Here's an explanation of what I did, and what replaces it. Werkzeug's reloader has to determine what arguments to start a new process with, including the Python executable, the script, whether it was run with -m , and arguments passed to…