Lines Matching full:path
103 command line, the supplied path may refer to a Python source file, a
104 compiled bytecode file or a valid sys.path entry containing a ``__main__``
108 module namespace. For a valid sys.path entry (typically a zipfile or
109 directory), the entry is first added to the beginning of ``sys.path``. The
111 updated path. Note that there is no special protection against invoking
112 an existing :mod:`__main__` entry located elsewhere on ``sys.path`` if
130 If the supplied path directly references a script file (whether as source
132 supplied path, and ``__spec__``, ``__cached__``, ``__loader__`` and
135 If the supplied path is a reference to a valid sys.path entry, then
142 ``sys.path`` may be altered as described above. ``sys.argv[0]`` is updated
150 allowing the execution of sys.path entries. As the thread-safety
156 command line (``python path/to/script``).
163 case where ``__main__`` is imported from a valid sys.path entry rather