Exemple #1
0
def get():
    path = join_path(SOURCES_DIR, LENTA_FILENAME)
    if exists(path):
        return path

    download(LENTA_URL, path)
    return path
Exemple #2
0
def get():
    path = join_path(SOURCES_DIR, WIKINER_FILENAME)
    if exists(path):
        return path

    download(WIKINER_URL, path)
    return path
Exemple #3
0
def get():
    dir = join_path(SOURCES_DIR, FACTRU_DIR)
    if exists(dir):
        return dir

    path = join_path(SOURCES_DIR, basename(FACTRU_URL))
    download(FACTRU_URL, path)
    unzip(path, SOURCES_DIR)
    rm(path)

    return dir