Commit 7a4f06a0 by Eric Coissac

Change the library path to its absolute value

parent 2063bf8b
......@@ -43,9 +43,6 @@
#
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load clobber package"
......
......@@ -37,9 +37,6 @@
#
#
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load download package"
......
......@@ -14,9 +14,6 @@
# The lecaluke module provides a set of variable defining emplacement
# where LECA ressources are stored on the LUKE cluster.
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load lecaluke package"
......
......@@ -44,9 +44,6 @@
# By default the logging level is set to WARNING.
# Therefore only WARNING and ERROR messages will be actually logged.
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
LOG_DEBUG_LEVEL=1
LOG_INFO_LEVEL=2
LOG_WARNING_LEVEL=3
......
......@@ -9,10 +9,6 @@
#
#
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load mutex package"
......
......@@ -9,10 +9,6 @@
#
#
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load sets package"
......
......@@ -28,9 +28,6 @@
# and the return status is set to 1 instead of 0 usually
#
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
include logging
logdebug "Load stacks package"
......
......@@ -14,8 +14,14 @@ if [[ -z "${LECALIB_UTIL_SH}" ]]; then
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/utils.sh"
LECALIB_DIR="${THIS_DIR}"
source "${THIS_DIR}/utils.sh"
function abspath() {
local P=$1
echo "$(cd "$(dirname "${P}")" && pwd -P)/$(basename "${P}")"
}
LECALIB_DIR=$(abspath "${THIS_DIR}")
function upper() {
echo $1 | tr "a-z" "A-Z"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment