From 20779731d3185af5c46d2037fe3d0682608237b7 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Tue, 12 Sep 2017 08:09:00 +0200 Subject: [PATCH] #N/A: Store not configured usage tracker in tempdir --- thefuck/entrypoints/not_configured.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/entrypoints/not_configured.py b/thefuck/entrypoints/not_configured.py index 3e01009b..a8cc248c 100644 --- a/thefuck/entrypoints/not_configured.py +++ b/thefuck/entrypoints/not_configured.py @@ -5,6 +5,7 @@ init_output() import os # noqa: E402 import json # noqa: E402 +from tempfile import gettempdir # noqa: E402 import time # noqa: E402 import six # noqa: E402 from psutil import Process # noqa: E402 @@ -12,7 +13,6 @@ from .. import logs, const # noqa: E402 from ..shells import shell # noqa: E402 from ..conf import settings # noqa: E402 from ..system import Path # noqa: E402 -from ..utils import get_cache_dir # noqa: E402 def _get_shell_pid(): @@ -27,7 +27,7 @@ def _get_shell_pid(): def _get_not_configured_usage_tracker_path(): """Returns path of special file where we store latest shell pid.""" - return Path(get_cache_dir()).joinpath('thefuck.last_not_configured_run') + return Path(gettempdir()).joinpath('thefuck.last_not_configured_run') def _record_first_run():