From e941f7f4a4eb48034502bea1db2d3ad74bf8ae78 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 18 Mar 2009 18:56:36 +0000 Subject: [PATCH] MODLANG-105 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12658 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- conf/autoload_configs/python.conf.xml | 6 +++--- src/mod/languages/mod_python/mod_python.c | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/conf/autoload_configs/python.conf.xml b/conf/autoload_configs/python.conf.xml index 78a146143a..d3a8fdc755 100644 --- a/conf/autoload_configs/python.conf.xml +++ b/conf/autoload_configs/python.conf.xml @@ -4,13 +4,13 @@ - - + + diff --git a/src/mod/languages/mod_python/mod_python.c b/src/mod/languages/mod_python/mod_python.c index eedbd3c0dc..782fe67ce1 100644 --- a/src/mod/languages/mod_python/mod_python.c +++ b/src/mod/languages/mod_python/mod_python.c @@ -388,6 +388,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n"); + globals.pool = pool; + if (!Py_IsInitialized()) { // initialize python system @@ -408,7 +410,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load) PyEval_ReleaseLock(); } - globals.pool = pool; do_config(); /* connect my internal structure to the blank pointer passed to me */