diff --git a/selection.py b/selection.py index 94c7d5c..1662f45 100644 --- a/selection.py +++ b/selection.py @@ -4,6 +4,8 @@ import random from abc import abstractmethod, ABC +import util + class HistoryManager(ABC): def __init__(self): @@ -23,7 +25,7 @@ def load_history(self): class FileSystemHistoryManager(HistoryManager): - def __init__(self, file_path='~/.lunchy/history.json'): + def __init__(self, file_path=util.get_root_fs() + '/selection_history.json'): super().__init__() self.file_path = os.path.expanduser(file_path) self.load_history()