Explorar el Código

Simplify running module to fix stdout buffering issue with supervisor.

pull/2/head
Tony DiCola hace 9 años
padre
commit
daaafedb45
Se han modificado 4 ficheros con 5 adiciones y 6 borrados
  1. +2
    -2
      Adafruit_Video_Looper/__init__.py
  2. +1
    -1
      Adafruit_Video_Looper/video_looper.py
  3. +1
    -2
      setup.py
  4. +1
    -1
      video_looper.conf

+ 2
- 2
Adafruit_Video_Looper/__init__.py Ver fichero

@@ -1,2 +1,2 @@
# Import main program.
from .video_looper import main

+ 1
- 1
Adafruit_Video_Looper/video_looper.py Ver fichero

@@ -214,7 +214,7 @@ class VideoLooper(object):


# Main entry point.
def main():
if __name__ == '__main__':
print('Starting Adafruit Video Looper.')
# Default config path to /boot.
config_path = '/boot/video_looper.ini'


+ 1
- 2
setup.py Ver fichero

@@ -10,5 +10,4 @@ setup(name = 'Adafruit_Video_Looper',
license = 'GNU GPLv2',
url = 'https://github.com/adafruit/pi_video_looper',
install_requires = ['pyudev'],
packages = find_packages(),
entry_points = {'console_scripts': ['video_looper = Adafruit_Video_Looper:main']})
packages = find_packages())

+ 1
- 1
video_looper.conf Ver fichero

@@ -1,7 +1,7 @@
# Supervisord configuration to run video looper at boot and
# ensure it runs continuously.
[program:video_looper]
command=video_looper
command=python -u -m Adafruit_Video_Looper.video_looper
autostart=true
autorestart=unexpected
startsecs=5

Cargando…
Cancelar
Guardar