Mercurial > repos > iuc > meningotype
diff update_db.py @ 0:b5f872c50249 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
author | iuc |
---|---|
date | Tue, 13 Jun 2023 11:04:30 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/update_db.py Tue Jun 13 11:04:30 2023 +0000 @@ -0,0 +1,14 @@ +#!/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)