use the interface

This commit is contained in:
Jakob Ketterl 2020-03-25 15:47:15 +01:00
parent 8a2356580a
commit 4aac5c9584
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from owrx.property import PropertyLayer from owrx.property import PropertyManager
import importlib.util import importlib.util
import os import os
import logging import logging
@ -55,7 +55,7 @@ class Config:
return [e for e in errors if e is not None] return [e for e in errors if e is not None]
@staticmethod @staticmethod
def checkTempDirectory(pm: PropertyLayer): def checkTempDirectory(pm: PropertyManager):
key = "temporary_directory" key = "temporary_directory"
if key not in pm or pm[key] is None: if key not in pm or pm[key] is None:
return ConfigError(key, "temporary directory is not set") return ConfigError(key, "temporary directory is not set")