def is_writable(path):
    """
    Returns if given path is writable.

    :param path: Path to check access.
    :type path: unicode
    :return: Is path writable.
    :rtype: bool
    """

    if os.access(path, os.W_OK):
        LOGGER.debug("> '{0}' path is writable.".format(path))
        return True
    else:
        LOGGER.debug("> '{0}' path is not writable.".format(path))
        return False
def is_writable ( path ) : if os . access ( path , os . W_OK ) : LOGGER . debug ( "> '{0}' path is writable." . format ( path ) ) return True else : LOGGER . debug ( "> '{0}' path is not writable." . format ( path ) ) return False
Returns if given path is writable.

    :param path: Path to check access.
    :type path: unicode
    :return: Is path writable.
    :rtype: bool