Skip to content

Commit

Permalink
Account for other conda variants by using conda-meta to detect conda …
Browse files Browse the repository at this point in the history
…on windows (#3250)
  • Loading branch information
aymanhab committed Jul 11, 2022
1 parent 78b7837 commit 1364efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bindings/Python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import os
if (sys.version_info.major == 3 and sys.version_info.minor >= 8 and sys.platform.startswith('win')):
if (os.path.exists(os.path.join(sys.prefix, 'conda'))):
if (os.path.exists(os.path.join(sys.prefix, 'conda-meta'))):
os.add_dll_directory(os.path.dirname(os.path.realpath(__file__)))
else:
os.add_dll_directory(DLL_PATH)
Expand Down

0 comments on commit 1364efe

Please sign in to comment.