In this section, we're going to wrap up this chapter's example program by making it simple to launch. We can run our program using python -m as long as it's installed in the system PYTHONPATH or we've activated the virtual environment containing it, as shown here:
Setting up a shell script or batch file to launch the program
Creating launches for our program
Once the program is solid, we really just want to be able to type its name or double-click on it and have it run. One convenient way to do that is to use a shell script or a batch file:
- On Unix-style operating systems including macOS, a shell script is a text file that starts with #bang/bin/sh and has been marked as executable
- On Windows, a batch...