Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-28 09:40:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-28 09:40:07 +0300
commit6527a14cd2ceaaf529beae522ca594bb250b56c9 (patch)
tree0a815077674bc99f209cbdc99cd3f756a4241db1
parentfb3f0d3cf004006854db6694a61c097e490673c3 (diff)
PyAPI: remove bpy.app.binary_path_python
This is deprecated in 2.91, remove for 2.92 in favor of 'sys.executable'.
-rw-r--r--source/blender/python/intern/bpy_app.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 02ab001dbf6..4b182bf1aa5 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -295,15 +295,6 @@ static int bpy_app_global_flag_set__only_disable(PyObject *UNUSED(self),
return bpy_app_global_flag_set(NULL, value, closure);
}
-PyDoc_STRVAR(bpy_app_binary_path_python_doc,
- "String, the path to the python executable (read-only). "
- "Deprecated! Use ``sys.executable`` instead.");
-static PyObject *bpy_app_binary_path_python_get(PyObject *UNUSED(self), void *UNUSED(closure))
-{
- PyErr_Warn(PyExc_RuntimeWarning, "Use 'sys.executable' instead of 'binary_path_python'!");
- return Py_INCREF_RET(PySys_GetObject("executable"));
-}
-
PyDoc_STRVAR(bpy_app_debug_value_doc,
"Short, number which can be set to non-zero values for testing purposes");
static PyObject *bpy_app_debug_value_get(PyObject *UNUSED(self), void *UNUSED(closure))
@@ -443,12 +434,6 @@ static PyGetSetDef bpy_app_getsets[] = {
bpy_app_global_flag_doc,
(void *)G_FLAG_USERPREF_NO_SAVE_ON_EXIT},
- {"binary_path_python",
- bpy_app_binary_path_python_get,
- NULL,
- bpy_app_binary_path_python_doc,
- NULL},
-
{"debug_value",
bpy_app_debug_value_get,
bpy_app_debug_value_set,