From dadddffdea674647981719094fe5cbfcf120a7f8 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 7 Mar 2023 17:48:46 +0100 Subject: [PATCH] ./gen can now load environment itself It was a bit too annoying to have to enter the venv. Of course, if the venv does not exist (at the hardcoded (!) path), it still fails. --- gen | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gen b/gen index ae9a50c..89e5f51 100755 --- a/gen +++ b/gen @@ -1,2 +1,5 @@ #!/bin/sh + +python3 -c 'import pelican' 2>/dev/null || . env/bin/activate + pelican "$@"