Skip to content

Commit

Permalink
adopt python setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Mar 13, 2024
1 parent c065b44 commit 197dcca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Examples/Python/setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ export PYTHONPATH=$python_dir:$PYTHONPATH

# Make ODD available if possible
# This seems to be only reliable on Linux for now, not on MacOS
odd_dir=$python_dir/../thirdparty/OpenDataDetector/factory
if [ -d "$odd_dir" ]; then
odd_src_dir=@CMAKE_CURRENT_SOURCE_DIR@/../../thirdparty/OpenDataDetector
export ODD_PATH=$odd_src_dir
odd_bin_dir=$python_dir/../thirdparty/OpenDataDetector/factory
if [ -d "$odd_bin_dir" ]; then
if [[ "$(uname -s)" == "Linux" ]]; then
echo "INFO: Found OpenDataDetector and set it up"
export LD_LIBRARY_PATH=$odd_dir:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$odd_bin_dir:$LD_LIBRARY_PATH
fi
if [[ "$(uname -s)" == "Darwin" ]]; then
echo "INFO: Found OpenDataDetector and set it up"
export DYLD_LIBRARY_PATH=$odd_dir:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$odd_bin_dir:$DYLD_LIBRARY_PATH
fi
fi

Expand Down

0 comments on commit 197dcca

Please sign in to comment.