This commit is contained in:
Kovid Goyal 2020-09-14 20:15:30 +05:30
parent 174f6b7ea8
commit 70f4112643
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -78,8 +78,7 @@ class Completer:
def __init__(self) -> None:
self.matches: List[str] = []
ddir = cache_dir()
with suppress(FileExistsError):
os.makedirs(ddir)
os.makedirs(ddir, exist_ok=True)
self.history_path = os.path.join(ddir, 'shell.history')
def complete(self, text: str, state: int) -> Optional[str]: