Skip to content

Commit

Permalink
Update test to determine if we are running in a conda environment #236 (
Browse files Browse the repository at this point in the history
#239)

* Update test to determine if we are running in a conda environment #236

* satisfy black
  • Loading branch information
hobu authored Apr 4, 2022
1 parent 67bee26 commit 5e6a2e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rtree/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def load() -> ctypes.CDLL:
lib_name = f"spatialindex_c-{arch}.dll"

# add search paths for conda installs
if "conda" in sys.version:
if (
os.path.exists(os.path.join(sys.prefix, "conda-meta"))
or "conda" in sys.version
):
_candidates.append(os.path.join(sys.prefix, "Library", "bin"))

# get the current PATH
Expand Down

0 comments on commit 5e6a2e6

Please sign in to comment.