common env variables

This commit is contained in:
Devaev Maxim
2020-10-03 03:34:55 +03:00
parent 872145590a
commit cccf44655a
14 changed files with 53 additions and 45 deletions

View File

@@ -20,7 +20,6 @@
# ========================================================================== #
import os
import asyncio
import asyncio.queues
import threading
@@ -35,12 +34,6 @@ import gpiod
from . import aiotools
# =====
# XXX: Do not use this variable for any purpose other than testing.
# It can be removed at any time.
DEVICE_PATH = os.getenv("KVMD_GPIO_DEVICE_PATH", "/dev/gpiochip0")
# =====
async def pulse(line: gpiod.Line, delay: float, final: float) -> None:
try: