@@ -24,11 +24,15 @@ There are two kinds of configuration:
24
24
environments variables are ignored, the LC_CTYPE locale is left unchanged and
25
25
no signal handler is registred.
26
26
27
+ The :c:func: `Py_RunMain ` function can be used to write a customized Python
28
+ program.
29
+
27
30
See also :ref: `Initialization, Finalization, and Threads <initialization >`.
28
31
29
32
.. seealso ::
30
33
:pep: `587 ` "Python Initialization Configuration".
31
34
35
+
32
36
Example
33
37
=======
34
38
@@ -532,7 +536,7 @@ PyConfig
532
536
533
537
Default: ``NULL``.
534
538
535
- Part of the :ref:`Path Configuration <init-path-config>` output.
539
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
536
540
537
541
.. c:member:: wchar_t* base_executable
538
542
@@ -544,15 +548,15 @@ PyConfig
544
548
545
549
Default: ``NULL``.
546
550
547
- Part of the :ref:`Path Configuration <init-path-config>` output.
551
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
548
552
549
553
.. c:member:: wchar_t* base_prefix
550
554
551
555
:data:`sys.base_prefix`.
552
556
553
557
Default: ``NULL``.
554
558
555
- Part of the :ref:`Path Configuration <init-path-config>` output.
559
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
556
560
557
561
.. c:member:: int buffered_stdio
558
562
@@ -634,7 +638,7 @@ PyConfig
634
638
635
639
Default: ``NULL``.
636
640
637
- Part of the :ref:`Path Configuration <init-path-config>` output.
641
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
638
642
639
643
.. c:member:: wchar_t* executable
640
644
@@ -643,7 +647,7 @@ PyConfig
643
647
644
648
Default: ``NULL``.
645
649
646
- Part of the :ref:`Path Configuration <init-path-config>` output.
650
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
647
651
648
652
.. c:member:: int faulthandler
649
653
@@ -726,7 +730,7 @@ PyConfig
726
730
727
731
Default: ``NULL``.
728
732
729
- Part of the :ref:`Path Configuration <init-path-config>` input.
733
+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
730
734
731
735
.. c:member:: int import_time
732
736
@@ -817,7 +821,7 @@ PyConfig
817
821
Default: value of the ``PLATLIBDIR`` macro which is set at configure time
818
822
by ``--with-platlibdir`` (default: ``"lib" ``).
819
823
820
- Part of the :ref:`Path Configuration <init-path-config>` input.
824
+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
821
825
822
826
.. versionadded:: 3.9
823
827
@@ -830,22 +834,22 @@ PyConfig
830
834
831
835
Default: ``NULL``.
832
836
833
- Part of the :ref:`Path Configuration <init-path-config>` input.
837
+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
834
838
835
839
.. c:member:: PyWideStringList module_search_paths
836
840
.. c:member:: int module_search_paths_set
837
841
838
842
Module search paths: :data:`sys.path`.
839
843
840
844
If :c:member:`~PyConfig.module_search_paths_set` is equal to 0, the
841
- function calculating the :ref:`Path Configuration <init-path-config>`
845
+ function calculating the :ref:`Python Path Configuration <init-path-config>`
842
846
overrides the :c:member:`~PyConfig.module_search_paths` and sets
843
847
:c:member:`~PyConfig.module_search_paths_set` to ``1``.
844
848
845
849
Default: empty list (``module_search_paths ``) and ``0``
846
850
(``module_search_paths_set ``).
847
851
848
- Part of the :ref:`Path Configuration <init-path-config>` output.
852
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
849
853
850
854
.. c:member:: int optimization_level
851
855
@@ -911,15 +915,15 @@ PyConfig
911
915
912
916
.. c:member:: int pathconfig_warnings
913
917
914
- On Unix, if non-zero, calculating the :ref:`Path Configuration
918
+ On Unix, if non-zero, calculating the :ref:`Python Path Configuration
915
919
<init-path-config>` can log warnings into ``stderr``. If equals to 0,
916
920
suppress these warnings.
917
921
918
922
It has no effect on Windows.
919
923
920
924
Default: ``1`` in Python mode, ``0`` in isolated mode.
921
925
922
- Part of the :ref:`Path Configuration <init-path-config>` input.
926
+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
923
927
924
928
.. c:member:: wchar_t* prefix
925
929
@@ -928,7 +932,7 @@ PyConfig
928
932
929
933
Default: ``NULL``.
930
934
931
- Part of the :ref:`Path Configuration <init-path-config>` output.
935
+ Part of the :ref:`Python Path Configuration <init-path-config>` output.
932
936
933
937
.. c:member:: wchar_t* program_name
934
938
@@ -946,7 +950,7 @@ PyConfig
946
950
947
951
Default: ``NULL``.
948
952
949
- Part of the :ref:`Path Configuration <init-path-config>` input.
953
+ Part of the :ref:`Python Path Configuration <init-path-config>` input.
950
954
951
955
.. c:member:: wchar_t* pycache_prefix
952
956
@@ -1262,7 +1266,7 @@ and user site directory. The C standard streams (ex: ``stdout``) and the
1262
1266
LC_CTYPE locale are left unchanged. Signal handlers are not installed.
1263
1267
1264
1268
Configuration files are still used with this configuration. Set the
1265
- :ref:`Path Configuration <init-path-config>` ("output fields") to ignore these
1269
+ :ref:`Python Path Configuration <init-path-config>` ("output fields") to ignore these
1266
1270
configuration files and avoid the function computing the default path
1267
1271
configuration.
1268
1272
@@ -1287,8 +1291,8 @@ and :ref:`Python UTF-8 Mode <utf8-mode>`
1287
1291
1288
1292
.. _init-path-config:
1289
1293
1290
- Path Configuration
1291
- ==================
1294
+ Python Path Configuration
1295
+ =========================
1292
1296
1293
1297
:c:type:`PyConfig` contains multiple fields for the path configuration:
1294
1298
0 commit comments