]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6849 #resolve #comment scripts need to have 'from freeswitch import *' at the...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Oct 2014 15:58:55 +0000 (10:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Oct 2014 15:58:55 +0000 (10:58 -0500)
src/mod/languages/mod_python/mod_python.c

index af53ab210717c72f41a70c5f4d0653c65e6fe03c..b27035ca983d618e65de414318d7ad2a1f779e65 100644 (file)
@@ -250,6 +250,8 @@ static void eval_some_python(const char *funcname, char *args, switch_core_sessi
                goto done_swap_out;
        }
 
+       PyRun_SimpleString("from freeswitch import *");
+
        if (session) {
                sp = mod_python_conjure_session(module, session);
        }