()
return False
Check if root has already been set.
Check if root has already been set.
Check if root has already been set .
def check_root():
    """Check if root has already been set."""
    existing_root = get_root()
    if existing_root:
        return True

    root = os.getenv('DDEV_ROOT', '')
    if root and os.path.isdir(root):
        set_root(root)
        return True
    return False
def check_root ( ) : existing_root = get_root ( ) if existing_root : return True root = os . getenv ( 'DDEV_ROOT' , '' ) if root and os . path . isdir ( root ) : set_root ( root ) return True return False