Skip to content

Instantly share code, notes, and snippets.

@SilvaEmerson
Last active May 25, 2019 23:52
Show Gist options
  • Save SilvaEmerson/1bc4c4ed172eaa1a9732a584a2d1eb00 to your computer and use it in GitHub Desktop.
Save SilvaEmerson/1bc4c4ed172eaa1a9732a584a2d1eb00 to your computer and use it in GitHub Desktop.
LICA Custom virtualenv

Instructions

  • 1:
chmod +x activate.sh
  • 2:
source activate.sh

And now, everytime that you need to activate the enviroment, just use command 2 😃

#!/bin/bash
licaenv=".lica"
licaascii="$licaenv/assets/LICA_ASCII"
if [ ! -d "$licaenv" ]
then
python -m venv $licaenv
fi
if [ ! -f "$licaascii" ]
then
mkdir $licaenv/assets &&\
mv LICA_ASCII $licaenv/assets
fi
source $licaenv/bin/activate &&\
cat $licaenv/assets/LICA_ASCII
____________________________
___ /____ _/_ ____/__ |
__ / __ / _ / __ /| |
_ /____/ / / /___ _ ___ |
/_____/___/ \____/ /_/ |_|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment