From 24e342dacff127db0abdbfd939a98d2f4fd2c652 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 17 Mar 2009 17:23:01 +0000 Subject: [PATCH] MODLANG-106 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12648 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_python/mod_python.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/languages/mod_python/mod_python.c b/src/mod/languages/mod_python/mod_python.c index aa7f613512..eedbd3c0dc 100644 --- a/src/mod/languages/mod_python/mod_python.c +++ b/src/mod/languages/mod_python/mod_python.c @@ -388,9 +388,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n"); - globals.pool = pool; - do_config(); - if (!Py_IsInitialized()) { // initialize python system @@ -411,6 +408,8 @@ 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 */ *module_interface = switch_loadable_module_create_module_interface(pool, modname);