Skip to content
Snippets Groups Projects
Select Git revision
  • 7fecdf895d67cc47f08c9134032d65a30b82fe9f
  • 2022 default
  • 2021
  • master protected
  • 2021
5 results

run.csh

Blame
  • config.sh 591 B
    SOURCE_PATH="${BASH_SOURCE[0]:-${(%):-%x}}"
    
    ## Check if this script is sourced
    [[ "$0" != "${SOURCE_PATH}" ]] && echo "Setting vars" || ( echo "Vars script must be sourced." && exit 1) ;
    ## Determine location of this file
    RELATIVE_PATH="$(dirname "$SOURCE_PATH")"
    ABSOLUTE_PATH="$(realpath "${RELATIVE_PATH}")"
    ####################################
    
    ### User Configuration
    export ENV_NAME="$(basename "$ABSOLUTE_PATH")"             # Default Name of the venv is the directory that contains this file
    export ENV_DIR="${ABSOLUTE_PATH}"/venv         # Default location of this VENV is "./venv"