Skip to content

Commit

Permalink
Fixing default dir issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor committed Apr 5, 2022
1 parent 5352b2d commit 611d12b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ def _default_cachedir(self):
"""Alfred 2's default cache directory."""
return os.path.join(
os.path.expanduser(
"~/Library/Caches/com.runningwithcrayons.Alfred-2/" "Workflow Data/"
"~/Library/Caches/com.runningwithcrayons.Alfred/" "Workflow Data/"
),
self.bundleid,
)
Expand Down Expand Up @@ -1605,8 +1605,6 @@ def stored_data(self, name):
"to load this data.".format(serializer_name)
)

self.logger.debug("data `%s` stored as `%s`", name, serializer_name)

filename = "{0}.{1}".format(name, serializer_name)
data_path = self.datafile(filename)

Expand Down Expand Up @@ -1677,9 +1675,6 @@ def delete_paths(paths):
delete_paths((metadata_path, data_path))
return

if isinstance(data, str):
data = bytearray(data, encoding="utf-8")

# Ensure write is not interrupted by SIGTERM
@uninterruptible
def _store():
Expand All @@ -1692,8 +1687,6 @@ def _store():

_store()

self.logger.debug("saved data: %s", data_path)

def cached_data(self, name, data_func=None, max_age=60):
"""Return cached data if younger than ``max_age`` seconds.
Expand Down

0 comments on commit 611d12b

Please sign in to comment.