Small changes. WIP. Use relases page to download app
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -23,4 +23,10 @@ Pipfile.lock # Consider if you want to include or exclude
|
|||||||
*~.nib
|
*~.nib
|
||||||
*~.xib
|
*~.xib
|
||||||
README.md.old
|
README.md.old
|
||||||
oai.zip
|
oai.zip
|
||||||
|
.note
|
||||||
|
diagnose.py
|
||||||
|
*.log
|
||||||
|
*.xml
|
||||||
|
build*
|
||||||
|
*.spec
|
||||||
2
oai.py
2
oai.py
@@ -35,12 +35,14 @@ APP_URL = "https://iurl.no/oai"
|
|||||||
# Paths
|
# Paths
|
||||||
home = Path.home()
|
home = Path.home()
|
||||||
config_dir = home / '.config' / 'oai'
|
config_dir = home / '.config' / 'oai'
|
||||||
|
cache_dir = home / '.cache' / 'oai'
|
||||||
history_file = config_dir / 'history.txt' # Persistent input history file
|
history_file = config_dir / 'history.txt' # Persistent input history file
|
||||||
database = config_dir / 'oai_config.db'
|
database = config_dir / 'oai_config.db'
|
||||||
log_file = config_dir / 'oai.log'
|
log_file = config_dir / 'oai.log'
|
||||||
|
|
||||||
# Create dirs if needed
|
# Create dirs if needed
|
||||||
config_dir.mkdir(parents=True, exist_ok=True)
|
config_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
cache_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
# Rich console for chat UI (separate from logging)
|
# Rich console for chat UI (separate from logging)
|
||||||
console = Console()
|
console = Console()
|
||||||
|
|||||||
Reference in New Issue
Block a user