From 229ffdf51a7a2c346be59f296396a9a1a1deb9e5 Mon Sep 17 00:00:00 2001 From: Rune Olsen Date: Thu, 18 Dec 2025 14:06:12 +0100 Subject: [PATCH] Small changes. WIP. Use relases page to download app --- .gitignore | 8 +++++++- oai.py | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e853533..3ee94d2 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,10 @@ Pipfile.lock # Consider if you want to include or exclude *~.nib *~.xib README.md.old -oai.zip \ No newline at end of file +oai.zip +.note +diagnose.py +*.log +*.xml +build* +*.spec \ No newline at end of file diff --git a/oai.py b/oai.py index 4ceaf64..8a252de 100644 --- a/oai.py +++ b/oai.py @@ -35,12 +35,14 @@ APP_URL = "https://iurl.no/oai" # Paths home = Path.home() config_dir = home / '.config' / 'oai' +cache_dir = home / '.cache' / 'oai' history_file = config_dir / 'history.txt' # Persistent input history file database = config_dir / 'oai_config.db' log_file = config_dir / 'oai.log' # Create dirs if needed config_dir.mkdir(parents=True, exist_ok=True) +cache_dir.mkdir(parents=True, exist_ok=True) # Rich console for chat UI (separate from logging) console = Console()