From 0cb208978840ac145a82fc29be72b8626cfcf9c0 Mon Sep 17 00:00:00 2001 From: Ian Faust Date: Fri, 19 Jul 2024 00:33:00 +0200 Subject: [PATCH] Update __init__.py --- onedal/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onedal/__init__.py b/onedal/__init__.py index f1535a3823..8f7ade667c 100644 --- a/onedal/__init__.py +++ b/onedal/__init__.py @@ -34,7 +34,10 @@ dal_root_redist = os.path.join(os.environ["DALROOT"], "redist", arch_dir) if os.path.exists(dal_root_redist): os.add_dll_directory(dal_root_redist) - os.add_dll_directory(path_to_libs) + try: + os.add_dll_directory(path_to_libs) + except FileNotFoundError: + pass os.environ["PATH"] = path_to_libs + os.pathsep + os.environ["PATH"] try: