Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Change directories to the environment directories like cd ~/miniconda2/env/examplenv (the actual path may be slightly different but it will be under env in the conda package
  2. Create the following directories and files:
    1. mkdir -p etc/conda/activate.d
    2. mkdir -p etc/conda/deactivate.d
    3. touch etc/conda/activate.d/env_vars.sh
    4. touch etc/conda/deactivate.d/env_vars.sh
  3. Add the following to this files
    1. To etc/conda/activate.d/env_vars.sh: 

      Code Block
      languagebash
      #!/bin/sh
      
      export SIT_DATA=$HOME/miniconda2/envs/examplenv/data:$HOME/psdm/data
      export SIT_PSDM_DATA=$HOME/psdm
    2. To /etc/conda/deactivate.d/env_vars.sh:

      Code Block
      languagebash
      #!/bin/sh
      
      unset SIT_DATA
      unset SIT_PSDM_DATA

...