def make_module_reload_func(module_name=None, module_prefix='[???]', module=None):
    """ Injects dynamic module reloading """
    module = _get_module(module_name, module, register=False)
    if module_name is None:
        module_name = str(module.__name__)
    def rrr(verbose=True):
        """ Dynamic module reloading """
        if not __RELOAD_OK__:
            raise Exception('Reloading has been forced off')
        try:
            import imp
            if verbose and not QUIET:
                builtins.print('RELOAD: ' + str(module_prefix) + ' __name__=' + module_name)
            imp.reload(module)
        except Exception as ex:
            print(ex)
            print('%s Failed to reload' % module_prefix)
            raise
    # this doesn't seem to set anything on import *
    #_inject_funcs(module, rrr)
    return rrr
def make_module_reload_func ( module_name = None , module_prefix = '[???]' , module = None ) : module = _get_module ( module_name , module , register = False ) if module_name is None : module_name = str ( module . __name__ ) def rrr ( verbose = True ) : if not __RELOAD_OK__ : raise Exception ( 'Reloading has been forced off' ) try : import imp if verbose and not QUIET : builtins . print ( 'RELOAD: ' + str ( module_prefix ) + ' __name__=' + module_name ) imp . reload ( module ) except Exception as ex : print ( ex ) print ( '%s Failed to reload' % module_prefix ) raise return rrr
Injects dynamic module reloading