Skip to content

Commit

Permalink
Fix creating cache dirs when in sub dir (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane authored Sep 8, 2024
1 parent 08d3274 commit bfbd798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/sinol_make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sinol_make.task_type.interactive import InteractiveTaskType # noqa


__version__ = "1.8.1"
__version__ = "1.8.2"


def configure_parsers():
Expand Down Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/sinol_make/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit bfbd798

Please sign in to comment.