[SR-Users] KEMI - app_python3 - reload multiple python files

Niklas Larsson niklas at tese.se
Mon Nov 14 10:46:31 CET 2022


Hi,

that is what we do:

import sys
import KSR as KSR
import constants
import endpointparam as epParam
import iendpoint as ep
from util import ParseAddress
from endpoint import GetEgressEndPointInstance, CreateAsteriskEndPoint, 
CreateSipTrunkEndPoint

etc

Been googling a bit, and it's should be possible to do a module.reload() 
- but is there a way to find out in that the modules needs to be reloaded?

/niklas

Den 2022-11-14 kl. 09:05, skrev Henning Westerholt:
> Hello,
>
> have you tried to just use "import my-file" the file my-file in your kamailio.py?
>
> Cheers,
>
> Henning
>



More information about the sr-users mailing list