Target¶
Import in python using from mcutils.pipe import Target
Documentation
-
class
mcutils.pipe.
Target
(filename)[source]¶ Object to store for each filename which ScriptRun is used to produce it
-
__init__
(filename)[source]¶ Creates a new Target defining how to produce filename
- Parameters
filename – Name of the file to be produced (or input filename)
Methods
add_to_graph
(graph[, upwards])Adds filename to the graph
Attributes
exists
Tests whether file exists on disk
expected
Whether file is expected to be produced
producer
- return
ScriptRun object that needs to be run to produce this file (or None if this is an input file)
-