On Jan 28, 2009, at 6:07 PM, Brian Deacon wrote:

I have.  But 'says here:
http://wiki.freeswitch.org/wiki/Mod_python#Can_I_test_scripts_using_python_shell.3F

That the "import _freeswitch" in freeswitch.py breaks except when the
script is run by mod_python.  (At which point there is some python
voodoo going on here that is beyond me.  Is _freeswitch a
runtime-generated SWIGism?)

Correct you can't do that unless its running in mod_python inside FreeSWITCH.



So I was thinking I could dump a _freeswitch.py onto the PYTHONPATH when
trying to debug code outside of mod_python.  But probably easier for
trivial things would be to just get the python error output to spit to
the log, but it seems to be getting swallowed.

Or was there something else in python_example.py that I've been too
dense to notice?

I think the key is to know you can only run it inside FreeSWITCH.



Brian

_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to