Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust authored Jul 18, 2024
1 parent f402019 commit 4d614fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion onedal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4d614fd

Please sign in to comment.