unidown.core.settings

Classes

Settings([root_dir, log_file, log_level])

Settings.

class Settings(root_dir=None, log_file=None, log_level='INFO')[source]

Bases: object

Settings.

Parameters
check_dirs()[source]

Check the directories if they exist.

Raises

FileExistsError – if a file exists but is not a directory

Return type

None

mkdir()[source]

Create all base directories.

Return type

None

_cores

Number of cores to be used.

_disable_tqdm

Disable console progress bar.

_download_dir: Path

Download main path, here are the sub folders for every plugin.

_log_file: Path

Log file of the program.

_log_level

Log level.

_root_dir: Path

Root path.

_savestate_dir: Path

Savestates main path, here are the sub folders for every plugin.

_temp_dir: Path

Temporary main path, here are the sub folders for every plugin.

property cores: int

Plain getter.

Return type

int

property disable_tqdm: bool

Plain getter.

Return type

bool

property download_dir: Path

Plain getter.

Return type

Path

property log_file: Path

Plain getter.

Return type

Path

property log_level: str

Plain getter.

Return type

str

property root_dir: Path

Plain getter.

Return type

Path

property savestate_dir: Path

Plain getter.

Return type

Path

property temp_dir: Path

Plain getter.

Return type

Path