oyono <adrienoy...@gmail.com> writes: > ... > I was thinking, maybe it could have been done this way to enforce not running > module files that are supposed to be bundled into packages as "independant" > python scripts...Therefore, running "python script.py" should be reserved to > effectively independant python scripts that do not import from a user-created > package or module.
When you run "python <script>", the path to "<script>" is added to "sys.path" (the target for "PYTHONPATH"). Motivation: "<script>" may depend on modules in its container. -- https://mail.python.org/mailman/listinfo/python-list