[Freeswitch-users] Reloading mod_python dist-packages?

João Mesquita jmesquita at freeswitch.org
Tue Aug 14 01:27:12 MSD 2012


Reloading the mod should be enough. I imagine that mod_python respects
anything that the interpreter would do as if it was running standalone.

Reloading modules is potentially hazardous and you should be careful with
it:
http://stackoverflow.com/questions/684171/how-to-re-import-an-updated-package-while-in-python-interpreter

Regards,
João Mesquita



On Mon, Aug 13, 2012 at 4:42 PM, Amil <amilkhanzada at gmail.com> wrote:

> *last bump*
>
>
> On Thu, Jul 19, 2012 at 12:17 PM, Amil <amilkhanzada at gmail.com> wrote:
>
>> Any ideas? If it is not possible, please let me know.
>>
>> Thanks,
>> Amil
>>
>> http://www.amilkhanzada.com/2012/06/gmail-keeping-mailing-list-topics-you.html
>>
>>
>> On Sun, Jul 15, 2012 at 8:57 PM, Amil <amilkhanzada at gmail.com> wrote:
>>
>>> So, I am writing some python scripts that are copied into the
>>> dist-packages directory of python.
>>> However, I am also using python scripts in the FreeSWITCH scripts
>>> directory that refer to these python scripts in the dist-packages.
>>> To re-copy the files, I need to run "sudo python setup_fs.py" each time
>>> I make a change.
>>>
>>> However, I also need to restart FreeSWITCH because I don't know of a way
>>> to reload the dist-packages used by mod_python.
>>>
>>> Any ideas?
>>>
>>> PS: This is the project I am referring to: <
>>> https://github.com/kheimerl/libvbts>
>>>
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120813/605f69d0/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list