To make a Python script executable from the shell, the environment to the top of the script:
#!/usr/bin/env python3
To make a Python script executable from the shell, the environment to the top of the script:
#!/usr/bin/env python3
Consolidated Notes From the Desk of Sean Davis.
Python Script from Shell
By Sean, 2023-01-05