2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* Contributor(s): Campbell Barton
20
* ***** END GPL LICENSE BLOCK *****
23
/** \file blender/python/intern/bpy_path.c
24
* \ingroup pythonintern
26
* This file defines '_bpy_path' module, Some 'C' funtionality used by 'bpy.path'
31
#include "BLI_utildefines.h"
35
#include "../generic/py_capi_utils.h"
37
/* #include "IMB_imbuf_types.h" */
38
extern const char *imb_ext_image[];
39
extern const char *imb_ext_movie[];
40
extern const char *imb_ext_audio[];
42
/*----------------------------MODULE INIT-------------------------*/
43
static struct PyModuleDef _bpy_path_module_def = {
44
PyModuleDef_HEAD_INIT,
45
"_bpy_path", /* m_name */
50
NULL, /* m_traverse */
55
PyObject *BPyInit__bpy_path(void)
59
submodule = PyModule_Create(&_bpy_path_module_def);
61
PyModule_AddObject(submodule, "extensions_image", PyC_FrozenSetFromStrings(imb_ext_image));
62
PyModule_AddObject(submodule, "extensions_movie", PyC_FrozenSetFromStrings(imb_ext_movie));
63
PyModule_AddObject(submodule, "extensions_audio", PyC_FrozenSetFromStrings(imb_ext_audio));