Updated: 2024-07-12
Created: 2024-07
import
and
similar tools from Python etc., are those that put together
the application so it is complete and can run.|tttttttt|XXXXXXXX|DDDDDDDDDDD|ddddddddddd|_____________| ... |_______| tables code RO data RW data variables stack
import
"
The import statement combines two operations; it searches for the named module, then it binds the results of that search to a name in the local scope.
PYTHON_PATH
and the Python variable
sys.path
.Python environment:
$ python3 -m venv /tmp/venv-demo $ source /tmp/venv-demo/bin/activate (venv-demo)$ printenv | grep /tmp/venv-demo VIRTUAL_ENV=/tmp/venv-demo PATH=/tmp/venv-demo/bin::/usr/local/sbin:/usr/local/bin:/usr/local/share/sbin:/usr/local/share/bin:/usr/sbin:/usr/bin:/usr/bin/X11::/usr/games (venv-demo)$ type python3 python3 is /tmp/venv-demo/bin/python3 (venv-demo)$ python3 -c "import sys; print(sys.path)" ['', '/usr/lib/python312.zip', '/usr/lib/python3.12', '/usr/lib/python3.12/lib-dynload', '/tmp/venv-demo/lib/python3.12/site-packages']