sandbox/tasks.py
def refresh_external_libs():
    """Update external libs by cloning/pulling them."""
    for url, alias in settings.EXTERNAL_LIBRARIES:
        path = os.path.join(settings.EXTERNAL_LIBRARIES_ROOT, alias)
        if os.path.exists(path):
            pull(alias, url)
            logger.info(f"Library '{alias}' updated from '{url}.")
        else:
            clone(alias, url)
            logger.info(f"Library '{alias}' cloned from '{url}.")
Update external libs by cloning/pulling them.
Update external libs by cloning/pulling them.
Update external libs by cloning / pulling them .
def refresh_external_libs():
    for url, alias in settings.EXTERNAL_LIBRARIES:
        path = os.path.join(settings.EXTERNAL_LIBRARIES_ROOT, alias)
        if os.path.exists(path):
            pull(alias, url)
            logger.info(f"Library '{alias}' updated from '{url}.")
        else:
            clone(alias, url)
            logger.info(f"Library '{alias}' cloned from '{url}.")
def refresh_external_libs ( ) : for url , alias in settings . EXTERNAL_LIBRARIES : path = os . path . join ( settings . EXTERNAL_LIBRARIES_ROOT , alias ) if os . path . exists ( path ) : pull ( alias , url ) logger . info ( f"Library '{alias}' updated from '{url}." ) else : clone ( alias , url ) logger . info ( f"Library '{alias}' cloned from '{url}." )
Update external libs by cloning/pulling them.
Update external libs by cloning / pulling them .
"""Update external libs by cloning/pulling them."""