feat: added support for nestes device configs
This commit is contained in:
parent
5efba43c26
commit
288f39483e
@ -299,12 +299,11 @@ def launch() -> None:
|
|||||||
raise FileNotFoundError(f"Config file {clargs.config} not found.")
|
raise FileNotFoundError(f"Config file {clargs.config} not found.")
|
||||||
|
|
||||||
if os.path.isdir(clargs.config):
|
if os.path.isdir(clargs.config):
|
||||||
files = os.listdir(clargs.config)
|
files = []
|
||||||
files = [
|
for root, _, filenames in os.walk(clargs.config):
|
||||||
os.path.join(clargs.config, file)
|
for filename in filenames:
|
||||||
for file in files
|
if filename.endswith(".yaml") or filename.endswith(".yml"):
|
||||||
if file.endswith(".yaml") or file.endswith(".yml")
|
files.append(os.path.join(root, filename))
|
||||||
]
|
|
||||||
else:
|
else:
|
||||||
files = [clargs.config]
|
files = [clargs.config]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user