Skip to content

Commit

Permalink
Delete for loop
Browse files Browse the repository at this point in the history
Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
  • Loading branch information
thealanjason and MilesCranmer authored Feb 11, 2024
1 parent 81c7d58 commit 60de461
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pysrc/juliacall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ def init():
import sys
import platform
if platform.system() == "Windows" and sys.hexversion >= 0x308000:
conda_environment_path = os.environ["CONDA_PREFIX"]
dll_search_paths = [
os.path.join(conda_environment_path, "Library", "bin"),
]
for path in dll_search_paths:
if os.path.exists(path):
os.add_dll_directory(path)
dll_search_path = os.path.join(os.environ["CONDA_PREFIX"], "Library", "bin")
if os.path.exists(dll_search_path):
os.add_dll_directory(dll_search_path)
import ctypes as c
import sys
import subprocess
Expand Down

0 comments on commit 60de461

Please sign in to comment.