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 */
|
2020-08-17 17:20:12 +10:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup python
|
|
|
|
|
*
|
|
|
|
|
* Functionality relating to Python setup & tear down.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
struct bContext;
|
|
|
|
|
|
2020-08-17 17:21:11 +10:00
|
|
|
/* For 'FILE'. */
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `bpy_interface.cc` */
|
2021-12-10 21:40:53 +11:00
|
|
|
|
|
|
|
|
/** Call #BPY_context_set first. */
|
2024-09-24 17:07:49 +02:00
|
|
|
void BPY_python_start(bContext *C, int argc, const char **argv);
|
2023-09-19 15:38:55 +10:00
|
|
|
void BPY_python_end(bool do_python_exit);
|
2024-09-24 17:07:49 +02:00
|
|
|
void BPY_python_reset(bContext *C);
|
|
|
|
|
void BPY_python_use_system_env();
|
2024-07-31 11:34:44 +10:00
|
|
|
bool BPY_python_use_system_env_get();
|
2020-09-04 20:59:13 +02:00
|
|
|
void BPY_python_backtrace(FILE *fp);
|
2020-08-17 17:20:12 +10:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `bpy_app.cc` */
|
2023-05-27 16:33:46 +10:00
|
|
|
|
|
|
|
|
/* Access `main_args_help_as_string` needed to resolve bad level call. */
|
2023-05-27 17:23:19 +10:00
|
|
|
extern char *(*BPY_python_app_help_text_fn)(bool all);
|