Skip to content

Commit

Permalink
CBD-465: Depend on PATH environment variable
Browse files Browse the repository at this point in the history
Set the environment PATH from caller side.

Change-Id: If9565f049ef4d6d47cce8e17b18074157ef30daf
Reviewed-on: http://review.couchbase.org/18841
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
  • Loading branch information
bcui6611 committed Jul 26, 2012
1 parent c2aaec0 commit 946c88a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/couchstore.py
Expand Up @@ -3,7 +3,6 @@

from ctypes import * # <http://docs.python.org/library/ctypes.html>
import errno
import os
import traceback

# Load the couchstore library and customize return types:
Expand All @@ -13,10 +12,8 @@
try:
_lib = CDLL("libcouchstore.dylib") # Mac OS
except OSError:
try:
folder = os.path.dirname(os.path.abspath(__file__))
dll_path = os.path.join(folder, "libcouchstore-1.dll")
_lib = CDLL(dll_path) # Windows (?)
try: # Windows
_lib = CDLL("libcouchstore-1.dll")
except Exception, err:
traceback.print_exc()
exit(1)
Expand Down

0 comments on commit 946c88a

Please sign in to comment.