From c2e070a89932c99a7aa4e58685bf65b9335c3870 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Fri, 16 Jun 2023 08:39:30 +0200 Subject: [PATCH] some stuff --- src/music_kraken/__init__.py | 9 --------- src/music_kraken/cli/informations/__init__.py | 1 + src/music_kraken/cli/informations/paths.py | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 src/music_kraken/cli/informations/__init__.py create mode 100644 src/music_kraken/cli/informations/paths.py diff --git a/src/music_kraken/__init__.py b/src/music_kraken/__init__.py index 147be6a..28d505a 100644 --- a/src/music_kraken/__init__.py +++ b/src/music_kraken/__init__.py @@ -61,15 +61,6 @@ def exit_message(): print("See you soon! :3") -def paths(): - print(f"Temp dir:\t{shared.TEMP_DIR}\n" - f"Music dir:\t{shared.MUSIC_DIR}\n" - f"Log file:\t{shared.LOG_PATH}") - print() - print_cute_message() - print() - - def settings( name: str = None, value: str = None, diff --git a/src/music_kraken/cli/informations/__init__.py b/src/music_kraken/cli/informations/__init__.py new file mode 100644 index 0000000..be110bf --- /dev/null +++ b/src/music_kraken/cli/informations/__init__.py @@ -0,0 +1 @@ +from .paths import print_paths \ No newline at end of file diff --git a/src/music_kraken/cli/informations/paths.py b/src/music_kraken/cli/informations/paths.py new file mode 100644 index 0000000..d6bff30 --- /dev/null +++ b/src/music_kraken/cli/informations/paths.py @@ -0,0 +1,17 @@ +from ...utils.path_manager import LOCATIONS +from ...utils import shared + + +def all_paths(): + return { + "Temp dir": LOCATIONS.TEMP_DIRECTORY, + "Music dir": LOCATIONS.MUSIC_DIRECTORY, + "Log file": shared.LOG_PATH, + "Conf dir": LOCATIONS.CONFIG_DIRECTORY, + "Conf file": LOCATIONS.CONFIG_FILE + } + + +def print_paths(): + for name, path in all_paths().items(): + print(f"{name}:\t{path}") \ No newline at end of file