mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
#N/A: Store not configured usage tracker in tempdir
This commit is contained in:
parent
ec5b69ca63
commit
20779731d3
@ -5,6 +5,7 @@ init_output()
|
|||||||
|
|
||||||
import os # noqa: E402
|
import os # noqa: E402
|
||||||
import json # noqa: E402
|
import json # noqa: E402
|
||||||
|
from tempfile import gettempdir # noqa: E402
|
||||||
import time # noqa: E402
|
import time # noqa: E402
|
||||||
import six # noqa: E402
|
import six # noqa: E402
|
||||||
from psutil import Process # 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 ..shells import shell # noqa: E402
|
||||||
from ..conf import settings # noqa: E402
|
from ..conf import settings # noqa: E402
|
||||||
from ..system import Path # noqa: E402
|
from ..system import Path # noqa: E402
|
||||||
from ..utils import get_cache_dir # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
def _get_shell_pid():
|
def _get_shell_pid():
|
||||||
@ -27,7 +27,7 @@ def _get_shell_pid():
|
|||||||
|
|
||||||
def _get_not_configured_usage_tracker_path():
|
def _get_not_configured_usage_tracker_path():
|
||||||
"""Returns path of special file where we store latest shell pid."""
|
"""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():
|
def _record_first_run():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user