• Home
  • Raw
  • Download

Lines Matching refs:PyConfig

12 :c:type:`PyConfig` structure. It can be preinitialized with
45 PyConfig config;
286 see :c:member:`PyConfig.dev_mode`.
292 Isolated mode: see :c:member:`PyConfig.isolated`.
301 * Set :c:member:`PyConfig.filesystem_encoding` to ``"mbcs"``,
302 * Set :c:member:`PyConfig.filesystem_errors` to ``"replace"``.
324 :c:member:`PyConfig.use_environment`.
420 PyConfig chapter
423 .. c:type:: PyConfig
432 .. c:function:: void PyConfig_InitPythonConfig(PyConfig *config)
437 .. c:function:: void PyConfig_InitIsolatedConfig(PyConfig *config)
442 ….. c:function:: PyStatus PyConfig_SetString(PyConfig *config, wchar_t * const *config_str, const w…
448 ….. c:function:: PyStatus PyConfig_SetBytesString(PyConfig *config, wchar_t * const *config_str, co…
455 .. c:function:: PyStatus PyConfig_SetArgv(PyConfig *config, int argc, wchar_t * const *argv)
457 Set command line arguments (:c:member:`~PyConfig.argv` member of
462 .. c:function:: PyStatus PyConfig_SetBytesArgv(PyConfig *config, int argc, char * const *argv)
464 Set command line arguments (:c:member:`~PyConfig.argv` member of
470 ….. c:function:: PyStatus PyConfig_SetWideStringList(PyConfig *config, PyWideStringList *list, Py_s…
476 .. c:function:: PyStatus PyConfig_Read(PyConfig *config)
483 :c:member:`PyConfig.argv` arguments once: :c:member:`PyConfig.parse_argv`
485 strippped from :c:member:`PyConfig.argv`, parsing arguments twice would
491 The :c:member:`PyConfig.argv` arguments are now only parsed once,
492 :c:member:`PyConfig.parse_argv` is set to ``2`` after arguments are
494 :c:member:`PyConfig.parse_argv` equals ``1``.
496 .. c:function:: void PyConfig_Clear(PyConfig *config)
500 Most ``PyConfig`` methods :ref:`preinitialize Python <c-preinit>` if needed.
502 (:c:type:`PyPreConfig`) in based on the :c:type:`PyConfig`. If configuration
504 be set before calling a :c:type:`PyConfig` method:
506 * :c:member:`PyConfig.dev_mode`
507 * :c:member:`PyConfig.isolated`
508 * :c:member:`PyConfig.parse_argv`
509 * :c:member:`PyConfig.use_environment`
525 Set :c:member:`~PyConfig.parse_argv` to ``1`` to parse
526 :c:member:`~PyConfig.argv` the same way the regular Python parses Python
528 :c:member:`~PyConfig.argv`.
530 If :c:member:`~PyConfig.argv` is empty, an empty string is added to
535 See also the :c:member:`~PyConfig.orig_argv` member.
551 Set from :c:member:`PyConfig.executable` if ``NULL``.
567 If equals to 0 and :c:member:`~PyConfig.configure_c_stdio` is non-zero,
622 * If :c:member:`~PyConfig.buffered_stdio` equals zero, disable buffering
624 * If :c:member:`~PyConfig.interactive` is non-zero, enable stream
702 See also the :c:member:`~PyConfig.filesystem_errors` member.
721 See also the :c:member:`~PyConfig.filesystem_encoding` member.
728 If :c:member:`~PyConfig.use_hash_seed` is zero, a seed is chosen randomly
729 at Python startup, and :c:member:`~PyConfig.hash_seed` is ignored.
795 * Set :c:member:`~PyConfig.use_environment` and
796 :c:member:`~PyConfig.user_site_directory` to 0.
860 If :c:member:`~PyConfig.module_search_paths_set` is equal to 0, the
862 overrides the :c:member:`~PyConfig.module_search_paths` and sets
863 :c:member:`~PyConfig.module_search_paths_set` to ``1``.
888 If :c:member:`~PyConfig.orig_argv` list is empty and
889 :c:member:`~PyConfig.argv` is not a list only containing an empty
890 string, :c:func:`PyConfig_Read` copies :c:member:`~PyConfig.argv` into
891 :c:member:`~PyConfig.orig_argv` before modifying
892 :c:member:`~PyConfig.argv` (if :c:member:`~PyConfig.parse_argv` is
895 See also the :c:member:`~PyConfig.argv` member and the
906 If equals to ``1``, parse :c:member:`~PyConfig.argv` the same way the regular
908 Python arguments from :c:member:`~PyConfig.argv`.
911 :c:member:`PyConfig.argv` arguments once: :c:member:`PyConfig.parse_argv`
913 strippped from :c:member:`PyConfig.argv`, parsing arguments twice would
919 The :c:member:`PyConfig.argv` arguments are now only parsed if
920 :c:member:`PyConfig.parse_argv` equals to ``1``.
955 Program name used to initialize :c:member:`~PyConfig.executable` and in
962 * Use ``argv[0]`` of :c:member:`~PyConfig.argv` if available and
1044 :c:member:`~PyConfig.site_import`.
1050 If non-zero, skip the first line of the :c:member:`PyConfig.run_filename`
1137 order: the last :c:member:`PyConfig.warnoptions` item becomes the first
1142 :c:member:`~PyConfig.warnoptions`, it can be used multiple times.
1159 :c:member:`~PyConfig.write_bytecode`.
1169 If :c:member:`~PyConfig.parse_argv` is non-zero, :c:member:`~PyConfig.argv`
1172 :c:member:`~PyConfig.argv`.
1174 The :c:member:`~PyConfig.xoptions` options are parsed to set other options: see
1182 Initialization with PyConfig
1187 .. c:function:: PyStatus Py_InitializeFromConfig(const PyConfig *config)
1201 The current configuration (``PyConfig`` type) is stored in
1210 PyConfig config;
1239 PyConfig config;
1291 variables, command line arguments (:c:member:`PyConfig.argv` is not parsed)
1324 :c:type:`PyConfig` contains multiple fields for the path configuration:
1328 * :c:member:`PyConfig.home`
1329 * :c:member:`PyConfig.platlibdir`
1330 * :c:member:`PyConfig.pathconfig_warnings`
1331 * :c:member:`PyConfig.program_name`
1332 * :c:member:`PyConfig.pythonpath_env`
1335 (from :c:member:`PyConfig.program_name`)
1343 * :c:member:`PyConfig.base_exec_prefix`
1344 * :c:member:`PyConfig.base_executable`
1345 * :c:member:`PyConfig.base_prefix`
1346 * :c:member:`PyConfig.exec_prefix`
1347 * :c:member:`PyConfig.executable`
1348 * :c:member:`PyConfig.module_search_paths_set`,
1349 :c:member:`PyConfig.module_search_paths`
1350 * :c:member:`PyConfig.prefix`
1354 :c:member:`~PyConfig.module_search_paths_set` is equal to 0,
1355 :c:member:`~PyConfig.module_search_paths` is overridden and
1356 :c:member:`~PyConfig.module_search_paths_set` is set to 1.
1365 Set :c:member:`~PyConfig.pathconfig_warnings` to 0 to suppress warnings when
1368 If :c:member:`~PyConfig.base_prefix` or :c:member:`~PyConfig.base_exec_prefix`
1369 fields are not set, they inherit their value from :c:member:`~PyConfig.prefix`
1370 and :c:member:`~PyConfig.exec_prefix` respectively.
1374 * If :c:member:`~PyConfig.run_filename` is set and is a directory which contains a
1375 ``__main__.py`` script, prepend :c:member:`~PyConfig.run_filename` to
1377 * If :c:member:`~PyConfig.isolated` is zero:
1379 * If :c:member:`~PyConfig.run_module` is set, prepend the current directory
1381 * If :c:member:`~PyConfig.run_filename` is set, prepend the directory of the
1385 If :c:member:`~PyConfig.site_import` is non-zero, :data:`sys.path` can be
1387 :c:member:`~PyConfig.user_site_directory` is non-zero and the user's
1398 :c:member:`PyConfig.base_executable`
1406 Execute the command (:c:member:`PyConfig.run_command`), the script
1407 (:c:member:`PyConfig.run_filename`) or the module
1408 (:c:member:`PyConfig.run_module`) specified on the command line or in the
1428 See also :c:member:`PyConfig.orig_argv` member.
1458 * :c:member:`PyConfig._init_main`: if set to 0,
1460 * :c:member:`PyConfig._isolated_interpreter`: if non-zero,
1489 PyConfig config;