|
|
@ -48,23 +48,29 @@ def get_downloads_path() -> Path:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@lru_cache(None)
|
|
|
|
@lru_cache(None)
|
|
|
|
def get_identities_list_path():
|
|
|
|
def get_identities_list_path() -> Path:
|
|
|
|
"""Return the identities JSON file path."""
|
|
|
|
"""Return the identities JSON file path."""
|
|
|
|
return get_user_data_path() / "identities.json"
|
|
|
|
return get_user_data_path() / "identities.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@lru_cache(None)
|
|
|
|
@lru_cache(None)
|
|
|
|
def get_identities_path():
|
|
|
|
def get_identities_path() -> Path:
|
|
|
|
"""Return the directory where identities are stored."""
|
|
|
|
"""Return the directory where identities are stored."""
|
|
|
|
return get_user_data_path() / "identities"
|
|
|
|
return get_user_data_path() / "identities"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@lru_cache(None)
|
|
|
|
@lru_cache(None)
|
|
|
|
def get_capsule_prefs_path():
|
|
|
|
def get_capsule_prefs_path() -> Path:
|
|
|
|
"""Return the directory where identities are stored."""
|
|
|
|
"""Return the directory where identities are stored."""
|
|
|
|
return get_user_data_path() / "capsule_prefs.json"
|
|
|
|
return get_user_data_path() / "capsule_prefs.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@lru_cache(None)
|
|
|
|
|
|
|
|
def get_history_path() -> Path:
|
|
|
|
|
|
|
|
"""Return the saved history path."""
|
|
|
|
|
|
|
|
return get_user_data_path() / "history.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ensure_bebop_files_exist() -> Optional[str]:
|
|
|
|
def ensure_bebop_files_exist() -> Optional[str]:
|
|
|
|
"""Ensure various Bebop's files or directories are present.
|
|
|
|
"""Ensure various Bebop's files or directories are present.
|
|
|
|
|
|
|
|
|
|
|
|