Skip to content

Commit

Permalink
fix: fs_cache folder name backward compatibility is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
user2589 committed Mar 15, 2019
1 parent 685d68a commit 8400cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stutils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def __init__(self, func, cache_dir='', app_name='', cache_type='', idx=1,
self.expires = expires
# Will create a path:
# <cache_dir>/<app_name>/<cache_type>/, omitting missing parts
self.cache_path = mkdir(cache_dir or DEFAULT_PATH, app_name, cache_type)
self.cache_path = mkdir(cache_dir or DEFAULT_PATH,
app_name and app_name + '.cache', cache_type)

if isinstance(idx, int):
# Python3 range objects won't work, so explicitly convert to list
Expand Down

0 comments on commit 8400cfe

Please sign in to comment.