fix: remove hardcoded /Users/apayne path from game engines (#831) #843

Open
Timmy wants to merge 1 commits from sprint/issue-836 into main
Owner
No description provided.
Timmy added 1 commit 2026-04-22 02:23:09 +00:00
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
07ff716329
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

Agent PR Gate

Check Status
Syntax / parse failure
Test suite failure
PR criteria failure
Risk level high

Failure details

  • syntax reported failure. Inspect the workflow logs for that step.
  • tests reported failure. Inspect the workflow logs for that step.
  • criteria reported failure. Inspect the workflow logs for that step.

Recommendation: human review.
Low-risk documentation/test-only PRs may be auto-merged. Operational changes stay in human review.

## Agent PR Gate | Check | Status | |-------|--------| | Syntax / parse | failure | | Test suite | failure | | PR criteria | failure | | Risk level | high | ### Failure details - syntax reported failure. Inspect the workflow logs for that step. - tests reported failure. Inspect the workflow logs for that step. - criteria reported failure. Inspect the workflow logs for that step. Recommendation: human review. Low-risk documentation/test-only PRs may be auto-merged. Operational changes stay in human review.
Owner

🔎 Merge sweep 2026-04-21: not merging this PR in the current sweep. Blocked by failing status checks on head 07ff7163: Agent PR Gate / report (pull_request): pending (Blocked by required conditions); Self-Healing Smoke / self-healing-smoke (pull_request): failure (Failing after 24s); Smoke Test / smoke (pull_request): failure (Failing after 28s); Agent PR Gate / gate (pull_request): failure (Failing after 54s).

🔎 Merge sweep 2026-04-21: not merging this PR in the current sweep. Blocked by failing status checks on head `07ff7163`: Agent PR Gate / report (pull_request): pending (Blocked by required conditions); Self-Healing Smoke / self-healing-smoke (pull_request): failure (Failing after 24s); Smoke Test / smoke (pull_request): failure (Failing after 28s); Agent PR Gate / gate (pull_request): failure (Failing after 54s).
Rockachopa approved these changes 2026-04-22 13:49:06 +00:00
Dismissed
Rockachopa left a comment
Owner

Approved — 2 file(s) changed, +2/-2 lines.
Fix looks targeted and appropriate.

**Approved** — 2 file(s) changed, +2/-2 lines. Fix looks targeted and appropriate.
Rockachopa reviewed 2026-04-22 13:49:40 +00:00
Rockachopa left a comment
Owner

Review: APPROVED

This is the foundational fix that multiple other PRs depend on. Replacing the hardcoded /Users/apayne/.timmy/evennia/timmy_world path with os.environ.get("TIMMY_WORLD_DIR", Path.home() / ".timmy" / "evennia" / "timmy_world") in both evennia/timmy_world/game.py and evennia/timmy_world/world/game.py is correct.

Merge this PR first — PRs #854 and #861 both touch game.py and depend on this fix being in place to avoid reintroducing the hardcoded path.

**Review: APPROVED** This is the foundational fix that multiple other PRs depend on. Replacing the hardcoded `/Users/apayne/.timmy/evennia/timmy_world` path with `os.environ.get("TIMMY_WORLD_DIR", Path.home() / ".timmy" / "evennia" / "timmy_world")` in both `evennia/timmy_world/game.py` and `evennia/timmy_world/world/game.py` is correct. **Merge this PR first** — PRs #854 and #861 both touch game.py and depend on this fix being in place to avoid reintroducing the hardcoded path.
Rockachopa approved these changes 2026-04-22 14:10:13 +00:00
Rockachopa left a comment
Owner

Important fix. Replaces hardcoded /Users/apayne/.timmy/evennia/timmy_world path with os.environ.get("TIMMY_WORLD_DIR", Path.home() / ".timmy" / "evennia" / "timmy_world") in both evennia/timmy_world/game.py and evennia/timmy_world/world/game.py. The environment variable override with sensible default is the correct pattern. This makes the code portable across machines. Both files get the same fix, which is good. Simple, correct, and addresses a real portability issue.

Important fix. Replaces hardcoded /Users/apayne/.timmy/evennia/timmy_world path with os.environ.get("TIMMY_WORLD_DIR", Path.home() / ".timmy" / "evennia" / "timmy_world") in both evennia/timmy_world/game.py and evennia/timmy_world/world/game.py. The environment variable override with sensible default is the correct pattern. This makes the code portable across machines. Both files get the same fix, which is good. Simple, correct, and addresses a real portability issue.
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
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin sprint/issue-836:sprint/issue-836
git checkout sprint/issue-836
Sign in to join this conversation.
No Reviewers
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#843