aac_datasets.utils.globals module

get_default_ffmpeg_path() str[source]

Returns the default ffmpeg executable path.

If set_default_ffmpeg_path() has been used before with a string argument, it will return the value given to this function. Else if the environment variable AAC_DATASETS_FFMPEG_PATH has been set to a string, it will return its value. Else it will be equal to “ffmpeg” by default.

get_default_root() str[source]

Returns the default root directory path.

If set_default_root() has been used before with a string argument, it will return the value given to this function. Else if the environment variable AAC_DATASETS_ROOT has been set to a string, it will return its value. Else it will be equal to “.” by default.

get_default_ytdlp_path() str[source]

Returns the default yt-dlp executable path.

If set_default_ytdlp_path() has been used before with a string argument, it will return the value given to this function. Else if the environment variable AAC_DATASETS_YTDLP_PATH has been set to a string, it will return its value. Else it will be equal to “yt-dlp” by default.

get_default_zip_path() str[source]

Returns the default zip executable path.

If set_default_zip_path() has been used before with a string argument, it will return the value given to this function. Else if the environment variable AAC_DATASETS_ZIP_PATH has been set to a string, it will return its value. Else it will be equal to “zip” by default.

set_default_ffmpeg_path(
tmp_path: str | Path | None,
) None[source]

Override default ffmpeg executable path.

set_default_root(
cache_path: str | Path | None,
) None[source]

Override default root directory path.

set_default_ytdlp_path(
java_path: str | Path | None,
) None[source]

Override default yt-dl executable path.

set_default_zip_path(
tmp_path: str | Path | None,
) None[source]

Override default zip executable path.