From 0ed555c62975bdcf0151ac3677dfe7ca048e526f Mon Sep 17 00:00:00 2001 From: Mateusz Masiarz Date: Sun, 8 Sep 2024 22:55:13 +0200 Subject: [PATCH] Fix creating cache dirs when in sub dir --- src/sinol_make/__init__.py | 3 +-- src/sinol_make/util.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sinol_make/__init__.py b/src/sinol_make/__init__.py index 0a8977e8..4603ba6a 100644 --- a/src/sinol_make/__init__.py +++ b/src/sinol_make/__init__.py @@ -12,7 +12,7 @@ from sinol_make.task_type.interactive import InteractiveTaskType # noqa -__version__ = "1.8.1" +__version__ = "1.8.2" def configure_parsers(): @@ -83,7 +83,6 @@ def main_exn(): if command: if len(arguments) > 1: print(f' {command.get_name()} command '.center(util.get_terminal_size()[1], '=')) - cache.create_cache_dirs() command.run(args) else: parser.print_help() diff --git a/src/sinol_make/util.py b/src/sinol_make/util.py index 1d5fef9e..04733db8 100644 --- a/src/sinol_make/util.py +++ b/src/sinol_make/util.py @@ -74,6 +74,7 @@ def exit_if_not_package(): """ if not find_and_chdir_package(): exit_with_error('You are not in a package directory (couldn\'t find config.yml in current directory).') + cache.create_cache_dirs() cache.check_can_access_cache()