aboutsummaryrefslogtreecommitdiff
path: root/generate
diff options
context:
space:
mode:
Diffstat (limited to 'generate')
-rwxr-xr-xgenerate4
1 files changed, 3 insertions, 1 deletions
diff --git a/generate b/generate
index 6c2b1ad..01daaca 100755
--- a/generate
+++ b/generate
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+. "$HOME/.local/share/venv/bin/activate"
+
src_home="${BASH_SOURCE[0]%/*}"
export PYTHONPATH="$src_home:$PYTHONPATH"
@@ -30,7 +32,7 @@ printf 'Running daily.py\n' >&2
python3 -m sjdbmk.daily --date="$TARGET" || exit 2
printf 'Running pack.py\n' >&2
python3 -m sjdbmk.pack --date="$TARGET" || exit 3
-xdg-open ../sjdb-build/sjdb-"$(printf '%s' "$TARGET" | tr -d '-')".html
+open ../sjdb-build/sjdb-"$(printf '%s' "$TARGET" | tr -d '-')".html
read -p "Is this bulletin OK to send? [y/N] " res
if [ "$res" = "y" ]
then