-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathSetup_template.sh
More file actions
52 lines (38 loc) · 1.14 KB
/
Setup_template.sh
File metadata and controls
52 lines (38 loc) · 1.14 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export DATA_dir=$PWD/data/TestResults
export GUI_dir=$PWD
export PH2ACF_BASE_DIR=$PWD/Ph2_ACF
export UsePowerSupplyLib=false
if [ ! -d $PH2ACF_BASE_DIR ]; then
echo "Error: PH2ACF_BASE_DIR not found!"
fi;
if [ ! -d $DATA_dir ]; then
echo "DATA_dir not found! Making it now!"
mkdir -p -m 777 $DATA_dir
fi;
if [ ! -d $PH2ACF_BASE_DIR/test ]; then
echo "Test directory not found! Making it now!"
mkdir -p -m 777 $PH2ACF_BASE_DIR/test;
fi;
if [ ! -d $DATA_dir ]; then
echo "Failed to create TestResults folder under DATA_dir, please check"
fi;
if [ ! -d $PH2ACF_BASE_DIR/test ]; then
echo "Failed to create test folder under PH2ACF_BASE_DIR, please check"
fi;
if [ "$UsePowerSupplyLib" = true ]; then
export PowerSupplyArea=$PWD/power_supply
else
unset PowerSupplyArea
fi
export DATA_dir=/Users/czkaiweb/Research/data/
chmod 755 $PWD/Gui/GUIutils/*.sh
cd $PH2ACF_BASE_DIR
source setup.sh
export Ph2_ACF_VERSION=$(git describe --tags --abbrev=0)
if [ "$UsePowerSupplyLib" = true ]
then
cd $PowerSupplyArea
source setup.sh
fi
export PYTHONPATH=${PYTHONPATH}:${PWD}
export PYTHONPATH=${PYTHONPATH}:${PWD}/icicle/icicle