view update_db.py @ 1:7f88b804fc0c draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit ac4610f4f81de5ab3a71fc28cbe3cdb1696ef667
author iuc
date Wed, 13 Mar 2024 11:52:59 +0000
parents b5f872c50249
children
line wrap: on
line source

#!/usr/bin/env python3

import pathlib
import shutil
import subprocess

import meningotype

if __name__ == '__main__':
    db_path = 'db'
    original_db_path = pathlib.Path(meningotype.__file__).parent / 'db'
    shutil.copytree(original_db_path, db_path)
    cmd = ["meningotype", "--updatedb", "--db", db_path]
    subprocess.run(cmd)