From 254b5c39dbc54ce0dbf30f86291ee4078f4f21d5 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 20 Jan 2020 14:37:19 +0100 Subject: [PATCH] ENV: suppression des warnings pour Python et Flask --- .zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 9fa8fd4..11e641e 100644 --- a/.zshrc +++ b/.zshrc @@ -83,8 +83,8 @@ export BROWSER=elinks export SSH_ASKPASS=qt4-ssh-askpass export AUTEUR="Olivier DOSSMANN" export DEFAULT_USER="od" -export WORKON_HOME=~/.virtualenvs -source /usr/bin/virtualenvwrapper.sh +export PYTHONWARNINGS="ignore::DeprecationWarning" +export FLASK_SKIP_DOTENV=1 # You may need to manually set your language environment export LANG=fr_FR.UTF-8 @@ -161,12 +161,16 @@ if [ ! $SSH_AGENT_PID ]; then fi; fi; -# Launch nvm possibilities (for javascript environment) +# Desktop specificities for development case $HOST in lueur | baloo | sam) : ;; *) + # nvm (for JS environment) source /usr/share/nvm/init-nvm.sh + # Virtualenv (for Python development) + export WORKON_HOME=~/.virtualenvs + source /usr/bin/virtualenvwrapper.sh ;; esac