[Freeswitch-users] Possible to mock out _freeswitch.py?
Brian West
brian at freeswitch.org
Wed Jan 28 16:20:22 PST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090128/bb4329af/attachment-0002.html
More information about the FreeSWITCH-users
mailing list