|
Blender V5.0
|
#include <cstdio>Go to the source code of this file.
Functions | |
| void | BPY_python_start (bContext *C, int argc, const char **argv) |
| void | BPY_python_end (bool do_python_exit) |
| void | BPY_python_reset (bContext *C) |
| void | BPY_python_use_system_env () |
| bool | BPY_python_use_system_env_get () |
| void | BPY_python_backtrace (FILE *fp) |
Variables | |
| char *(* | BPY_python_app_help_text_fn )(bool all) |
Functionality relating to Python setup & tear down.
Definition in file BPY_extern_python.hh.
| void BPY_python_backtrace | ( | FILE * | fp | ) |
Definition at line 693 of file bpy_interface.cc.
References PyThreadState_GetUnchecked.
Referenced by crashlog_file_generate().
| void BPY_python_end | ( | bool | do_python_exit | ) |
Definition at line 607 of file bpy_interface.cc.
References BLI_assert_msg, BLI_time_now_seconds(), BPY_app_translations_end(), BPY_atexit_unregister(), bpy_context_end(), BPY_context_get(), BPY_driver_exit(), bpy_intern_string_exit(), BPY_rna_exit(), BPY_rna_props_clear_all(), printf, and RNA_bpy_exit().
Referenced by WM_exit_ex().
| void BPY_python_reset | ( | bContext * | C | ) |
Definition at line 669 of file bpy_interface.cc.
References BLI_assert_msg, BPY_app_handlers_reset(), BPY_driver_reset(), BPY_modules_load_user(), C, G, G_FLAG_SCRIPT_AUTOEXEC_FAIL, and G_FLAG_SCRIPT_AUTOEXEC_FAIL_QUIET.
Referenced by wm_file_read_post(), and WM_init().
| void BPY_python_start | ( | bContext * | C, |
| int | argc, | ||
| const char ** | argv ) |
Call BPY_context_set first.
Definition at line 345 of file bpy_interface.cc.
References BKE_appdir_folder_id(), BKE_appdir_program_path(), BKE_appdir_program_python_search(), BLENDER_SYSTEM_PYTHON, BLI_assert, BLI_assert_msg, BLI_getenv(), BLI_path_join, BLI_setenv(), BPY_atexit_register(), BPy_init_modules(), bpy_intern_string_init(), bpy_internal_modules, BPY_LOG_INTERFACE, BPY_rna_init(), BPY_run_string_eval(), C, CLOG_DEBUG, FILE_MAX, G, G_DEBUG_PYTHON, L, mod, Py_DECREF(), py_use_system_env, pyrna_alloc_types(), pystatus_exit_on_error(), and status.
Referenced by WM_init().
| void BPY_python_use_system_env | ( | ) |
Definition at line 682 of file bpy_interface.cc.
References BLI_assert, and py_use_system_env.
Referenced by arg_handle_python_use_system_env_set().
|
nodiscard |
Definition at line 688 of file bpy_interface.cc.
References py_use_system_env.
Referenced by bpy_app_python_args_get().
|
extern |
Definition at line 712 of file bpy_app.cc.
Referenced by bpy_app_help_text(), and main_args_setup().