-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbashrc_lid
More file actions
executable file
·32 lines (27 loc) · 1.03 KB
/
Copy pathbashrc_lid
File metadata and controls
executable file
·32 lines (27 loc) · 1.03 KB
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
#!/bin/bash
# make sure path to this project is set
if [ ! -n "$POLICY_DIFFUSION" ]; then
echo "Error: \$POLICY_DIFFUSION environment variable is not set"
return
fi
# ensure user specified directory for log files
if [ ! -n "$LOGFILE_DIRECTORY" ]; then
echo "Error: \$LOGFILE_DIRECTORY environment variable is not set"
return
fi
# ensure users specified a directory for temporary files
if [ ! -n "$TEMPFILE_DIRECTORY" ]; then
echo "Error: \$TEMPFILE_DIRECTORY environment variable is not set"
return
fi
# ensure users specified the IP address for the ElasticSearch instance
if [ ! -n "$ELASTICSEARCH_IP" ]; then
echo "Error: \$ELASTICSEARCH_IP environment variable is not set"
return
fi
# add python code to path
export PYTHONPATH=${POLICY_DIFFUSION}/lid:${PYTHONPATH}
export PYTHONPATH=${POLICY_DIFFUSION}/lid/etl:${PYTHONPATH}
export PYTHONPATH=${POLICY_DIFFUSION}/lid/utils:${PYTHONPATH}
export PYTHONPATH=${POLICY_DIFFUSION}/lid/evaluation:${PYTHONPATH}
export PYTHONPATH=${POLICY_DIFFUSION}/scripts:${PYTHONPATH}