Skip to content

Commit

Permalink
use version_info instead of hexversion
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 60de461 commit 1feedc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysrc/juliacall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def init():
## For Windows and Python 3.8+ we need to add dll search paths
import sys
import platform
if platform.system() == "Windows" and sys.hexversion >= 0x308000:
if platform.system() == "Windows" and sys.version_info >= (3, 8):
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)
Expand Down

0 comments on commit 1feedc3

Please sign in to comment.