MODLANG-105

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12658 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-03-18 18:56:36 +00:00
parent beea024a53
commit e941f7f4a4
2 changed files with 5 additions and 4 deletions

View File

@ -4,13 +4,13 @@
<!--<param name="xml-handler-bindings" value="dialplan"/>-->
<!--
The following options identifies a py script that is launched
The following options identifies a py module that is launched
at startup and may live forever in the background.
You can define multiple lines, one for each script you
need to run.
-->
<!--<param name="startup-script" value="startup_script_1.py"/>-->
<!--<param name="startup-script" value="startup_script_2.py"/>-->
<!--<param name="startup-script" value="startup_script_1"/>-->
<!--<param name="startup-script" value="startup_script_2"/>-->
</settings>
</configuration>

View File

@ -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 */