From 0a43d9e01ec2a47b7909a9ff7798834d2e6d24fa Mon Sep 17 00:00:00 2001 From: hzrd149 <8001706+hzrd149@users.noreply.github.com> Date: Fri, 4 Apr 2025 20:07:13 +0100 Subject: [PATCH] load .env file on watch (#1) --- requirements.txt | 2 +- watch.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4560d2f..5f01ae9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,4 @@ pyyaml>=6.0.1 # Development dependencies pytest>=7.4.0 black>=23.7.0 -flake8>=6.1.0 \ No newline at end of file +flake8>=6.1.0 diff --git a/watch.sh b/watch.sh index a003bad..32ecf0d 100755 --- a/watch.sh +++ b/watch.sh @@ -1,7 +1,14 @@ #!/bin/bash +# Load environment variables from .env file +if [ -f .env ]; then + source .env +else + echo "Warning: .env file not found" +fi + # Activate virtual environment source vibenv/bin/activate # Run the watch script -python src/watch_voice_memos.py \ No newline at end of file +python src/watch_voice_memos.py