...
Code Block |
---|
language | bash |
---|
title | Command Line |
---|
| ecflow_client --load=/my/home/exotic.def check_only |
|
Code Block |
---|
language | py |
---|
title | Python, Load from disk and check |
---|
| from ecflow import Defs
defs = Defs('/my/home/exotic.def')
print(defs.check()) |
|
---|
...
However, typically Definition files are built using the python API, where most checks are done whilst the definition is being built. (i.e. duplicate node names at the same level)
Code Block |
---|
language | py |
---|
title | Check defs built with ecflow python API |
---|
|
import os
from ecflow import Defs,Suite,Task,Edit
home = os.path.join(os.getenv("HOME"), "course")
defs = Defs(
Suite('test',
Edit(ECF_HOME=home),
Task('t1')))
print(defs.check()) |
...