use the interface
This commit is contained in:
parent
8a2356580a
commit
4aac5c9584
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user