music-kraken-core/music_kraken/cli/informations/paths.py

22 lines
629 B
Python
Raw Normal View History

2023-06-20 14:40:34 +00:00
from ..utils import cli_function
2023-06-16 06:39:30 +00:00
from ...utils.path_manager import LOCATIONS
2024-01-22 20:39:39 +00:00
from ...utils.config import main_settings
2023-06-16 06:39:30 +00:00
def all_paths():
return {
2024-01-22 20:39:39 +00:00
"Temp dir": main_settings["temp_directory"],
"Music dir": main_settings["music_directory"],
2023-06-16 06:39:30 +00:00
"Conf dir": LOCATIONS.CONFIG_DIRECTORY,
"Conf file": LOCATIONS.CONFIG_FILE,
2024-01-22 20:39:39 +00:00
"logging file": main_settings["log_file"],
"FFMPEG bin": main_settings["ffmpeg_binary"],
"Cache Dir": main_settings["cache_directory"],
2023-06-16 06:39:30 +00:00
}
2023-06-20 14:40:34 +00:00
@cli_function
2023-06-16 06:39:30 +00:00
def print_paths():
for name, path in all_paths().items():
print(f"{name}:\t{path}")