mkt.schema.config

Output-directory configuration via the OUTPUT_DIR environment variable.

Provides get_output_dir()/set_output_dir(), which read and write the OUTPUT_DIR environment variable used across the toolkit to locate the output directory.

Module Attributes

OUTPUT_DIR_VAR

Environment variable for output directory

Functions

get_output_dir()

Get the output directory from the environment.

set_output_dir(val)

Set the output directory in environment variables.

mkt.schema.config.OUTPUT_DIR_VAR = 'OUTPUT_DIR'

Environment variable for output directory

Type:

str

mkt.schema.config.get_output_dir() str | None[source]

Get the output directory from the environment.

Returns:

str | None

Output directory path if exists, otherwise None

mkt.schema.config.set_output_dir(val: str) None[source]

Set the output directory in environment variables.

Parameters:

valstr

Output directory path

Returns:

None