deps and envs
This commit is contained in:
6
setup.py
6
setup.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user