ソースを参照

allow setting config file location via env var

Blake Blackshear 4 年 前
コミット
9d594cc640
1 ファイル変更2 行追加0 行削除
  1. 2 0
      detect_objects.py

+ 2 - 0
detect_objects.py

@@ -25,6 +25,8 @@ from frigate.edgetpu import EdgeTPUProcess
 
 FRIGATE_VARS = {k: v for k, v in os.environ.items() if k.startswith('FRIGATE_')}
 
+CONFIG_FILE = os.environ.get('CONFIG_FILE', '/config/config.yml')
+
 with open('/config/config.yml') as f:
     CONFIG = yaml.safe_load(f)