Loading module or commands at startup.
Goal: Learn how to load a module or
execute commands at startup.
- Set environement variable “PYTHONSTARTUP” to a file.
- Put import statements in that file to import a module or commands to be executed at startup.
- Warning: it does not work with python –i script.py.