def reload_dependencies(force=False):
    """
    Reloads all python modules that law depends on. Currently, this is just *luigi* and *six*.
    Unless *force* is *True*, multiple calls to this function will not have any effect.
    """
    global _reloaded_deps

    if _reloaded_deps and not force:
        return
    _reloaded_deps = True

    for mod in deps:
        six.moves.reload_module(mod)
        logger.debug("reloaded module '{}'".format(mod))
def reload_dependencies ( force = False ) : global _reloaded_deps if _reloaded_deps and not force : return _reloaded_deps = True for mod in deps : six . moves . reload_module ( mod ) logger . debug ( "reloaded module '{}'" . format ( mod ) )
Reloads all python modules that law depends on. Currently, this is just *luigi* and *six*.
    Unless *force* is *True*, multiple calls to this function will not have any effect.