diff --git a/qp_woltka/woltka.py b/qp_woltka/woltka.py index 5cd009e..95213e4 100644 --- a/qp_woltka/woltka.py +++ b/qp_woltka/woltka.py @@ -51,8 +51,8 @@ def _process_database_files(database_fp): for k in database_files['kegg'].keys(): if f'{dt}/{k}' in files: database_files['kegg'][k] = f'{dt}/{k}' - lmap_fp = f'{database_fp}/genomes/length.map' - if exists(lmap_fp) + lmap_fp = f'{dirname(database_fp)}/genomes/length.map' + if exists(lmap_fp): database_files['length.map'] = lmap_fp return database_files