From a22d20521cb5fe3acb8aa13b9a809ef1acb92ee7 Mon Sep 17 00:00:00 2001 From: amochin Date: Tue, 1 Oct 2024 17:14:37 +0200 Subject: [PATCH] variable instead of hardcoded ibm_db value --- src/DatabaseLibrary/connection_manager.py | 2 +- src/DatabaseLibrary/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DatabaseLibrary/connection_manager.py b/src/DatabaseLibrary/connection_manager.py index 20e69f4..3ca710d 100644 --- a/src/DatabaseLibrary/connection_manager.py +++ b/src/DatabaseLibrary/connection_manager.py @@ -320,7 +320,7 @@ def _arg_or_config(arg_value, param_name, *, old_param_name=None, mandatory=Fals if db_api_module_name in ["ibm_db", "ibm_db_dbi"]: if os.name == "nt": - spec = importlib.util.find_spec("ibm_db") + spec = importlib.util.find_spec(db_api_module_name) if spec is not None: logger.info( f"Importing DB module '{db_api_module_name}' on Windows requires configuring the DLL directory for CLI driver" diff --git a/src/DatabaseLibrary/version.py b/src/DatabaseLibrary/version.py index b46c2e7..311aff2 100644 --- a/src/DatabaseLibrary/version.py +++ b/src/DatabaseLibrary/version.py @@ -1 +1 @@ -VERSION = "2.0.1" +VERSION = "2.0.2"