Reloading the already imported module

anil.pundoor at gmail.com anil.pundoor at gmail.com
Thu Jan 11 07:51:34 EST 2007


hi all,
      i have following code


                if <condition>
                        from SIPT.xml_param_mapping import
MESSAGE_PARAMETER_MAPPING
                else:
                        from SIPT.msg_param_mapping import
MESSAGE_PARAMETER_MAPPING


                        parameter_list = MESSAGE_PARAMETER_MAPPING [
'ABC' ]
                        for parms in parameter_list:

parameter_list[parms][4] = 'EXPORT'

parameter_list[parms][5] = 'IMPORT'


       After this the xml_param_mapping gets altered. this process is
repeated over couple of time. But every time i need to get a fresh
xml_param_mapping. So how to relaod the already imported module??



regards
Anil




More information about the Python-list mailing list