Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Code Block
languagebash
titleCommand Line
ecflow_client --load=/my/home/exotic.def check_only



Code Block
languagepy
titlePython, 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
languagepy
titleCheck 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())

...