8 lines
419 B
Bash
8 lines
419 B
Bash
cd ~/anaconda2/envs/mlp
|
|
mkdir -p ./etc/conda/activate.d
|
|
mkdir -p ./etc/conda/deactivate.d
|
|
echo -e '#!/bin/sh\n' >> ./etc/conda/activate.d/env_vars.sh
|
|
echo "export MLP_DATA_DIR=$HOME/mlp_term_2/mlpractical/data" >> ./etc/conda/activate.d/env_vars.sh
|
|
echo -e '#!/bin/sh\n' >> ./etc/conda/deactivate.d/env_vars.sh
|
|
echo 'unset MLP_DATA_DIR' >> ./etc/conda/deactivate.d/env_vars.sh
|
|
export MLP_DATA_DIR=$HOME/mlpractical/data |