def setLangPath(path):
    """Changes the default 'lang' folder path. Retrun True if the path is valid, False otherwise."""
    log.debug("setLangPath <<<")
    log.debug("Argument 'path': %s" % path)
    path = os.path.normpath(os.path.abspath(path))
    log.debug("   Norm and abs: %s" % path)
    log.debug("os.access(path, os.F_OK): %s; os.path.isdir(path): %s; os.access(path, os.R_OK): %s" % (os.access(path, os.F_OK), os.path.isdir(path), os.access(path, os.R_OK)))
    if os.access(path, os.F_OK) and os.path.isdir(path) and os.access(path, os.R_OK):
        log.debug("'path' is valid")
        global langPath
        langPath = path
        return True
    log.debug("'path' is not valid")
    log.debug("setLangPath >>>")
    return False
Changes the default 'lang' folder path. Retrun True if the path is valid, False otherwise.
albow/translate.py