Пример #1
0
def load_all_mods():
    if app.repo:
        app.mods = load_mods(os.path.join(app.repo.path, 'mods'))
    else:
        app.mods = load_mods(
            os.path.join(app.config['LOCAL_METAREPO_PATH'], 'mods'))
    print('Creating IPFS links')
    app.flinks = ipfsutil.mk_links(app.ipfs, app.mods)
    app.pins = ipfsutil.pinned_files(app.ipfs, app.mods)
    pin_files_async()
Пример #2
0
def load_mods(args):
    return metafile.load_mods(os.path.join(repo_path, 'mods'))
Пример #3
0
def load_all_mods():
    app.mods = load_mods(os.path.join(app.repo.path, 'mods'))
    print('Creating IPFS links')
    app.flinks = ipfsutil.mk_links(app.ipfs, app.mods)
    app.pins = ipfsutil.pinned_files(app.ipfs, app.mods)
    pin_files_async()