Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
PythonInvoker.cpp File Reference
#include <Python.h>
#include <iterator>
#include <osdefs.h>
#include "PythonInvoker.h"
#include "Application.h"
#include "ServiceBroker.h"
#include "messaging/ApplicationMessenger.h"
#include "addons/AddonManager.h"
#include "dialogs/GUIDialogKaiToast.h"
#include "filesystem/File.h"
#include "filesystem/SpecialProtocol.h"
#include "guilib/GUIComponent.h"
#include "windowing/GraphicContext.h"
#include "guilib/GUIWindowManager.h"
#include "guilib/LocalizeStrings.h"
#include "interfaces/python/PyContext.h"
#include "interfaces/python/pythreadstate.h"
#include "interfaces/python/swig.h"
#include "interfaces/python/XBPython.h"
#include "threads/SingleLock.h"
#include "utils/log.h"
#include "utils/StringUtils.h"
#include "utils/URIUtils.h"

Macros

#define fopen_utf8   fopen
 
#define GC_SCRIPT
 
#define PY_PATH_SEP   DELIM
 
#define PYTHON_SCRIPT_TIMEOUT   5000
 
#define PythonModulesSize   sizeof(PythonModules) / sizeof(PythonModule)
 

Functions

int xbp_chdir (const char *dirname)
 
char * dll_getenv (const char *szKey)
 

Macro Definition Documentation

◆ fopen_utf8

#define fopen_utf8   fopen

◆ GC_SCRIPT

#define GC_SCRIPT
Value:
"import gc\n" \
"gc.collect(2)\n"

◆ PY_PATH_SEP

#define PY_PATH_SEP   DELIM

◆ PYTHON_SCRIPT_TIMEOUT

#define PYTHON_SCRIPT_TIMEOUT   5000

◆ PythonModulesSize

#define PythonModulesSize   sizeof(PythonModules) / sizeof(PythonModule)

Function Documentation

◆ dll_getenv()

char * dll_getenv ( const char *  szKey)

◆ xbp_chdir()

int xbp_chdir ( const char *  dirname)