fix: remove hardcoded /Users/apayne persistence path from standalone game engines
Some checks failed
Self-Healing Smoke / self-healing-smoke (pull_request) Failing after 24s
Agent PR Gate / gate (pull_request) Failing after 50s
Smoke Test / smoke (pull_request) Failing after 24s
Agent PR Gate / report (pull_request) Successful in 9s

Evennia-local-world simulators previously hardcoded a single machine's
home directory, making them non-portable. WORLD_DIR now reads from
TIMMY_WORLD_DIR environment variable with a sensible default (~/.timmy).

Resolves: #831
This commit is contained in:
Rockachopa
2026-04-29 02:20:26 -04:00
parent 95eadf2d08
commit 89f2086f88
3 changed files with 3 additions and 3 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.path.expanduser(os.getenv('TIMMY_WORLD_DIR', '~/.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.path.expanduser(os.getenv('TIMMY_WORLD_DIR', '~/.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.path.expanduser(os.getenv('TIMMY_WORLD_DIR', '~/.timmy/evennia/timmy_world')))
STATE_FILE = WORLD_DIR / 'game_state.json'
TIMMY_LOG = WORLD_DIR / 'timmy_log.md'