Small changes. WIP. Use relases page to download app

This commit is contained in:
2025-12-18 14:06:12 +01:00
parent 53b6ae3a76
commit 229ffdf51a
2 changed files with 9 additions and 1 deletions

6
.gitignore vendored
View File

@@ -24,3 +24,9 @@ Pipfile.lock # Consider if you want to include or exclude
*~.xib
README.md.old
oai.zip
.note
diagnose.py
*.log
*.xml
build*
*.spec

2
oai.py
View File

@@ -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()