[evennia-local-world] Remove hardcoded /Users/apayne persistence path from standalone game engines #831

Closed
opened 2026-04-21 07:09:54 +00:00 by Rockachopa · 0 comments
Owner

Problem

The standalone Evennia-local-world simulators hardcode Alexander's local home path:

  • evennia/timmy_world/game.py
  • evennia/timmy_world/world/game.py

Both define:

WORLD_DIR = Path('/Users/apayne/.timmy/evennia/timmy_world')

This makes the simulation non-portable and couples state/log writes to one machine layout.

Reproduction

Read either module directly or run the import-based verification from timmy-home #677.

Impact

  • breaks on any machine that is not /Users/apayne
  • makes CI/runtime portability worse
  • risks writing state into the wrong operator-specific directory

Acceptance Criteria

  • Replace hardcoded WORLD_DIR with config/env/pathlib-based resolution
  • Keep save/load behavior working for both game.py and world/game.py
  • Add a regression test proving the base directory is overrideable
## Problem The standalone Evennia-local-world simulators hardcode Alexander's local home path: - `evennia/timmy_world/game.py` - `evennia/timmy_world/world/game.py` Both define: ```python WORLD_DIR = Path('/Users/apayne/.timmy/evennia/timmy_world') ``` This makes the simulation non-portable and couples state/log writes to one machine layout. ## Reproduction Read either module directly or run the import-based verification from timmy-home #677. ## Impact - breaks on any machine that is not `/Users/apayne` - makes CI/runtime portability worse - risks writing state into the wrong operator-specific directory ## Acceptance Criteria - [ ] Replace hardcoded `WORLD_DIR` with config/env/pathlib-based resolution - [ ] Keep save/load behavior working for both `game.py` and `world/game.py` - [ ] Add a regression test proving the base directory is overrideable
Rockachopa referenced this issue from a commit 2026-04-21 11:37:57 +00:00
codex-agent was assigned by Rockachopa 2026-04-22 02:08:28 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#831