Skip to content

Commit

Permalink
Fix build path detection on SunOS
Browse files Browse the repository at this point in the history
Inside the hiredis directory there is another directory that contains the
shared object. This is specific to the platform so we shouldn't care where the
shared object itself is placed.
  • Loading branch information
pietern committed Jan 5, 2014
1 parent ceaec64 commit 75fd4aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
majorminor = version[0:3]

# Add path to hiredis.so load path
path = glob.glob("build/lib*-%s/hiredis/*.so" % majorminor)[0]
sys.path.insert(0, os.path.dirname(path))
path = glob.glob("build/lib*-%s/hiredis" % majorminor)[0]
sys.path.insert(0, path)

from unittest import *
from . import reader
Expand Down

0 comments on commit 75fd4aa

Please sign in to comment.