Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Whitestone
07ff716329 fix: remove hardcoded /Users/apayne path from game engines (closes #836)
Some checks failed
Self-Healing Smoke / self-healing-smoke (pull_request) Failing after 24s
Smoke Test / smoke (pull_request) Failing after 28s
Agent PR Gate / gate (pull_request) Failing after 54s
Agent PR Gate / report (pull_request) Successful in 24s
Replace hardcoded WORLD_DIR with environment-variable-configurable path.
Default: ~/.timmy/evennia/timmy_world (uses Path.home(), works on any user)
Override: TIMMY_WORLD_DIR=/custom/path python3 game.py

Files changed:
- evennia/timmy_world/game.py
- evennia/timmy_world/world/game.py
2026-04-21 21:12:24 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import json, time, os, random
from datetime import datetime
from pathlib import Path
WORLD_DIR = Path('/Users/apayne/.timmy/evennia/timmy_world')
WORLD_DIR = Path(os.environ.get('TIMMY_WORLD_DIR', Path.home() / '.timmy' / 'evennia' / 'timmy_world'))
STATE_FILE = WORLD_DIR / 'game_state.json'
TIMMY_LOG = WORLD_DIR / 'timmy_log.md'

View File

@@ -8,7 +8,7 @@ import json, time, os, random
from datetime import datetime
from pathlib import Path
WORLD_DIR = Path('/Users/apayne/.timmy/evennia/timmy_world')
WORLD_DIR = Path(os.environ.get('TIMMY_WORLD_DIR', Path.home() / '.timmy' / 'evennia' / 'timmy_world'))
STATE_FILE = WORLD_DIR / 'game_state.json'
TIMMY_LOG = WORLD_DIR / 'timmy_log.md'