pestifer.scripters.tcl module

class pestifer.scripters.tcl.TcLScripter(*args, **kwargs)[source]

Bases: GenericScripter

This class extends the GenericScripter class to provide functionality for creating and managing Tcl scripts.

Parameters:

config (Config) – The configuration object containing settings for the script.

addfile(filename)[source]

Add a file to the list of files associated with the script; these might be inputs or outputs (mostly outputs). This method appends the specified filename to the internal FileCollector.

Parameters:

filename (str) – The name of the file to be added.

newscript(basename=None)[source]

Initialize a new Tcl script with a specified basename. If no basename is provided, a default script name is used.

Parameters:

basename (str, optional) – The base name for the script file. If not provided, a default name is used.

writescript()[source]

Writes the Tcl script to the file specified by the scriptname attribute.