MODLANG-106

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12648 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-03-17 17:23:01 +00:00
parent c3165e9667
commit 24e342dacf
1 changed files with 2 additions and 3 deletions

View File

@ -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);