Lines Matching full:path
1 .. _sys-path-init:
3 The initialization of the :data:`sys.path` module search path
6 A module search path is initialized when Python starts. This module search path
7 may be accessed at :data:`sys.path`.
9 The first entry in the module search path is the directory that contains the
15 to the search path. If this environment variable is found then the contents are
16 added to the module search path.
41 module search path even if the archive does not exist. If no archive was found,
54 are added to the module search path. A common way to customize the search path is
60 Certain command line options may further affect path calculations.
72 * If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this
73 path is used instead of the path to the main executable when deducing ``prefix``
79 To completely override :data:`sys.path` create a ``._pth`` file with the same
81 The shared library path is always known on Windows, however it may not be
82 available on other platforms. In the ``._pth`` file specify one line for each path
83 to add to :data:`sys.path`. The file based on the shared library name overrides
90 ignored. Each path may be absolute or relative to the location of the file.
101 the :c:type:`PyConfig` structure can be used to initialize Python. The path specific
102 details are described at :ref:`init-path-config`. Alternatively the older :c:func:`Py_SetPath`
103 can be used to bypass the initialization of the module search path.