deps and envs

This commit is contained in:
2025-09-25 14:58:56 +02:00
parent aee8ec5cb0
commit 97547f4f80
5 changed files with 28 additions and 9 deletions

View File

@@ -12,6 +12,10 @@ import subprocess
from pathlib import Path
from typing import Dict, List, Optional
import logging
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
class VideoPlayerSetup:
"""Interactive setup for Video Player system"""
@@ -19,7 +23,7 @@ class VideoPlayerSetup:
def __init__(self):
self.config_dir = Path("/etc/video_player")
self.install_dir = Path("/opt/video_player")
self.video_folder = Path("/home/pi/Videos")
self.video_folder = Path(os.getenv('VIDEO_FOLDER', '/home/pi/Videos'))
self.logger = self.setup_logging()
def setup_logging(self):