Accessing paths at compile time
The SPL code generation APIs provide the methods to access special paths at code generation time.
These methods are provided as part of the SPL::Operator::Instance::Context
class.
getApplicationDirectory()
: The absolute path to the application directory, in which the compilation is being performed.getDataDirectory()
: The absolute path to the directory that contains the application data.getOperatorDirectory()
: The absolute path to the directory that contains the operator model. This directory is within the toolkit.getOutputDirectory()
: The absolute path to the output directory, into which the results of the compilation is being produced.