2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-02-27 20:10:08 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup pythonintern
|
2011-02-27 20:10:08 +00:00
|
|
|
*/
|
|
|
|
|
|
2013-09-19 23:17:52 +00:00
|
|
|
#pragma once
|
2012-09-15 01:52:28 +00:00
|
|
|
|
2025-01-07 12:39:13 +01:00
|
|
|
#include <Python.h>
|
|
|
|
|
|
2020-10-15 18:12:03 +11:00
|
|
|
struct bContext;
|
|
|
|
|
|
2022-09-21 11:57:20 +10:00
|
|
|
/** Creates the `bpy` module and adds it to `sys.modules` for importing. */
|
2024-09-24 12:23:25 +02:00
|
|
|
void BPy_init_modules(bContext *C);
|
2021-12-02 17:24:04 +11:00
|
|
|
|
2011-02-20 23:39:29 +00:00
|
|
|
extern PyObject *bpy_package_py;
|
2011-09-20 12:22:19 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `bpy_interface_atexit.cc` */
|
2022-04-04 13:17:03 +10:00
|
|
|
|
2024-09-24 12:23:25 +02:00
|
|
|
void BPY_atexit_register();
|
|
|
|
|
void BPY_atexit_unregister();
|
2012-09-15 01:52:28 +00:00
|
|
|
|
2019-02-23 22:16:32 +11:00
|
|
|
extern struct CLG_LogRef *BPY_LOG_RNA;
|
2020-11-02 19:33:32 +11:00
|
|
|
extern struct CLG_LogRef *BPY_LOG_INTERFACE;
|