polaris.Step.work_path

Step.work_path(*filenames)[source]

Get the absolute path to a file or directory in the step’s work directory

Steps should use this method (rather than a bare relative filename) for any file they open in run(), so that the step does not depend on the process working directory being its own work directory. See Writing task-parallel-safe steps.

Parameters:

*filenames (str) – One or more path components, relative to the step’s work directory

Returns:

path (str) – The absolute path to the file or directory