From 303bbd8294bb566651ac722f5a42071e397f7c18 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 14 Oct 2023 19:55:29 +0200 Subject: [PATCH] direnv: Support pip --- home/config/direnv/direnvrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/config/direnv/direnvrc b/home/config/direnv/direnvrc index a1afda4..5b6fe3e 100644 --- a/home/config/direnv/direnvrc +++ b/home/config/direnv/direnvrc @@ -51,8 +51,13 @@ project_node() { } project_python() { + export PYTHONUSERBASE=$(direnv_layout_dir)/python-user + path_add PYTHONPATH $(realpath $PYTHONUSERBASE/lib/python*/site-packages) + export POETRY_HOME=$(direnv_layout_dir)/poetry/data export POETRY_CACHE_DIR=$(direnv_layout_dir)/poetry/cache + + PATH_add $PYTHONUSERBASE/bin } project_ruby() {