From 5d8f70f6fb14e66b22a6564d1957a5396b7b17cd Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Mon, 14 Aug 2023 00:42:13 -0600 Subject: [PATCH] flake8 --- qp_woltka/woltka.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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