-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetenv.sh
executable file
·34 lines (29 loc) · 988 Bytes
/
setenv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# ===============================================================
# OVERVIEW
# ===============================================================
#
# Source this file in order to set the proper ENV variables for
# this module. Note that this script will attempt to look for
# all "dl_*" subdirectories in the current parent folder with a
# corresponding ./setenv.sh file and source those as well.
#
# ===============================================================
# USAGE
# ===============================================================
#
# $ source ./setenv.sh
#
# ===============================================================
echo "Setting ENV variables for module: DL_UTILS"
# --- Set ENV for current module
export DL_UTILS_ROOT=$PWD
export PYTHONPATH=$PYTHONPATH:$PWD
# --- Source any other scripts for other modules
for SCRIPTS in ../dl_*; do
if [ $SCRIPTS != "../dl_utils" ]; then
cd $SCRIPTS
source ./setenv.sh
fi
done
cd ../dl_utils