Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Detray/python/setup.sh.in is written in an unsupported language. File is not indexed.

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 # This script sets up the Detray Python package in the environment in a somewhat
0010 # robust way.
0011 
0012 if [ -n "$ZSH_VERSION" ]; then
0013     python_dir=${0:a:h}
0014 elif [ -n "$BASH_VERSION" ]; then
0015     python_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}"  )" &> /dev/null && pwd  )
0016 else
0017     # If the current shell is not ZSH or Bash, we can't guarantee that the
0018     # script will work, so we throw an error.
0019     echo "ERROR:   neither ZSH nor Bash was detected, other shells are not supported. The environment has not been modified."
0020     exit 1
0021 fi
0022 
0023 # Make python package available
0024 export PYTHONPATH=$python_dir:$PYTHONPATH