mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
PySys_SetArgv is deprecated in 3.11
The initialization API was updated in 3.8. "This API is kept for backward compatibility: setting PyConfig.argv and PyConfig.parse_argv should be used instead, see Python Initialization Configuration."
This commit is contained in:
parent
cfc0890d5d
commit
8b25832ba0
@ -57,6 +57,11 @@ libgncmod_python_gnc_module_description(void)
|
|||||||
return g_strdup("An embedded Python interpreter");
|
return g_strdup("An embedded Python interpreter");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX >= 0x030b0000
|
||||||
|
// PySys_SetArgv is deprecated in 3.11
|
||||||
|
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
libgncmod_python_gnc_module_init(int refcount)
|
libgncmod_python_gnc_module_init(int refcount)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user