2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2020-08-17 17:20:12 +10:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup python
|
|
|
|
|
*
|
|
|
|
|
* Functionality relating to Python setup & tear down.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
struct bContext;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-08-17 17:21:11 +10:00
|
|
|
/* For 'FILE'. */
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2020-08-17 17:20:12 +10:00
|
|
|
/* bpy_interface.c */
|
2021-12-10 21:40:53 +11:00
|
|
|
|
|
|
|
|
/** Call #BPY_context_set first. */
|
2020-10-15 18:12:03 +11:00
|
|
|
void BPY_python_start(struct bContext *C, int argc, const char **argv);
|
2020-08-17 17:20:12 +10:00
|
|
|
void BPY_python_end(void);
|
|
|
|
|
void BPY_python_reset(struct bContext *C);
|
|
|
|
|
void BPY_python_use_system_env(void);
|
2020-09-04 20:59:13 +02:00
|
|
|
void BPY_python_backtrace(FILE *fp);
|
2020-08-17 17:20:12 +10:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|