|
Blender V4.3
|
#include <stdio.h>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 649 of file bpy_interface.cc.
Referenced by sig_handle_crash().
| void BPY_python_end | ( | bool | do_python_exit | ) |
Definition at line 561 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 pyrna_free_types().
Referenced by WM_exit_ex().
| void BPY_python_reset | ( | bContext * | C | ) |
Definition at line 625 of file bpy_interface.cc.
References BLI_assert_msg, BPY_app_handlers_reset(), BPY_driver_reset(), BPY_modules_load_user(), G, G_FLAG_SCRIPT_AUTOEXEC_FAIL, and G_FLAG_SCRIPT_AUTOEXEC_FAIL_QUIET.
Referenced by wm_file_read_post(), and WM_init().
Call BPY_context_set first.
Definition at line 329 of file bpy_interface.cc.
References BKE_appdir_folder_id(), BKE_appdir_program_path(), BKE_appdir_program_python_search(), BLENDER_SYSTEM_PYTHON, 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(), CLOG_INFO, FILE_MAX, mod(), py_use_system_env, pyrna_alloc_types(), and pystatus_exit_on_error().
Referenced by WM_init().
| void BPY_python_use_system_env | ( | ) |
Definition at line 638 of file bpy_interface.cc.
References BLI_assert, and py_use_system_env.
Referenced by arg_handle_python_use_system_env_set().
| bool BPY_python_use_system_env_get | ( | ) |
Definition at line 644 of file bpy_interface.cc.
References py_use_system_env.
Referenced by bpy_app_python_args_get().
|
extern |
Definition at line 587 of file bpy_app.cc.
Referenced by bpy_app_help_text(), and main_args_setup().