@@ -622,7 +622,8 @@ Process-wide parameters
622
622
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
623
623
624
624
.. deprecated-removed :: 3.13 3.15
625
- Get :data: `sys.executable ` instead.
625
+ Use ``PySys_GetObject("executable") `` (:data: `sys.executable `) or
626
+ ``PyConfig_Get("executable")`` instead.
626
627
627
628
628
629
.. c:function:: wchar_t* Py_GetPrefix()
@@ -644,8 +645,11 @@ Process-wide parameters
644
645
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
645
646
646
647
.. deprecated-removed :: 3.13 3.15
647
- Get :data: `sys.base_prefix ` instead, or :data: `sys.prefix ` if
648
- :ref: `virtual environments <venv-def >` need to be handled.
648
+ Use ``PySys_GetObject("base_prefix") `` (:data: `sys.base_prefix `) or
649
+ ``PyConfig_Get("base_prefix")`` instead. Use
650
+ ``PySys_GetObject("prefix")`` (:data: `sys.prefix `) or
651
+ ``PyConfig_Get("prefix")`` if :ref:`virtual environments <venv-def>` need
652
+ to be handled.
649
653
650
654
651
655
.. c:function:: wchar_t* Py_GetExecPrefix()
@@ -690,8 +694,11 @@ Process-wide parameters
690
694
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
691
695
692
696
.. deprecated-removed :: 3.13 3.15
693
- Get :data:`sys.base_exec_prefix` instead, or :data:`sys.exec_prefix` if
694
- :ref:`virtual environments <venv-def>` need to be handled.
697
+ Use ``PySys_GetObject("base_exec_prefix") ``
698
+ (:data: `sys.base_exec_prefix `) or ``PyConfig_Get("base_exec_prefix") ``
699
+ instead. Use ``PySys_GetObject("exec_prefix") `` (:data: `sys.exec_prefix `)
700
+ or ``PyConfig_Get("exec_prefix") `` if :ref: `virtual environments
701
+ <venv-def>` need to be handled.
695
702
696
703
697
704
.. c :function :: wchar_t * Py_GetProgramFullPath ()
@@ -712,7 +719,8 @@ Process-wide parameters
712
719
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
713
720
714
721
.. deprecated-removed :: 3.13 3.15
715
- Get :data: `sys.executable ` instead.
722
+ Use ``PySys_GetObject("executable") `` (:data: `sys.executable `) or
723
+ ``PyConfig_Get("executable") `` instead.
716
724
717
725
718
726
.. c :function :: wchar_t * Py_GetPath ()
@@ -740,7 +748,8 @@ Process-wide parameters
740
748
It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
741
749
742
750
.. deprecated-removed :: 3.13 3.15
743
- Get :data: `sys.path ` instead.
751
+ Use ``PySys_GetObject("path") `` (:data: `sys.path `)
752
+ or ``PyConfig_Get("module_search_paths") `` instead.
744
753
745
754
746
755
.. c :function :: const char * Py_GetVersion ()
@@ -926,8 +935,8 @@ Process-wide parameters
926
935
It now returns ``NULL`` if called before :c:func:`Py_Initialize`.
927
936
928
937
.. deprecated-removed:: 3.13 3.15
929
- Get :c:member:`PyConfig. home` or :envvar:`PYTHONHOME` environment
930
- variable instead.
938
+ Use :c:func:`PyConfig_Get( " home" ) <PyConfig_Get>`
939
+ or the :envvar:`PYTHONHOME` environment variable instead.
931
940
932
941
933
942
.. _threads:
0 commit comments