Skip to content

Commit

Permalink
Appending library (dll or so) path using os.path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-ferenczi committed May 28, 2015
1 parent df6c7d0 commit 917e8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper/cxxnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# set this line correctly
if os.name == 'nt':
# TODO windows
CXXNET_PATH = os.path.dirname(__file__) + '/libcxxnetwrapper.dll'
CXXNET_PATH = os.path.join(os.path.dirname(__file__), 'libcxxnetwrapper.dll')
else:
CXXNET_PATH = os.path.dirname(__file__) + '/libcxxnetwrapper.so'
CXXNET_PATH = os.path.join(os.path.dirname(__file__), 'libcxxnetwrapper.so')

# load in xgboost library
cxnlib = ctypes.cdll.LoadLibrary(CXXNET_PATH)
Expand Down

0 comments on commit 917e8cd

Please sign in to comment.