New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
16
deps/obs-scripting/obs-scripting-python-import.c
vendored
16
deps/obs-scripting/obs-scripting-python-import.c
vendored
|
|
@ -51,18 +51,18 @@ bool import_python(const char *python_path)
|
|||
lib = os_dlopen(lib_path.array);
|
||||
if (!lib) {
|
||||
blog(LOG_WARNING, "[Python] Could not load library: %s",
|
||||
lib_path.array);
|
||||
lib_path.array);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
#define IMPORT_FUNC(x) \
|
||||
do { \
|
||||
Import_##x = os_dlsym(lib, #x); \
|
||||
if (!Import_##x) { \
|
||||
#define IMPORT_FUNC(x) \
|
||||
do { \
|
||||
Import_##x = os_dlsym(lib, #x); \
|
||||
if (!Import_##x) { \
|
||||
blog(LOG_WARNING, "[Python] Failed to import: %s", \
|
||||
#x); \
|
||||
goto fail; \
|
||||
} \
|
||||
#x); \
|
||||
goto fail; \
|
||||
} \
|
||||
} while (false)
|
||||
|
||||
IMPORT_FUNC(PyType_Ready);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue