Skip to content

fix(runs): make real_partition_experiment.py path-portable - #112

Merged
jascal merged 1 commit into
mainfrom
fix/portable-script-paths
Jun 4, 2026
Merged

fix(runs): make real_partition_experiment.py path-portable#112
jascal merged 1 commit into
mainfrom
fix/portable-script-paths

Conversation

@jascal

@jascal jascal commented Jun 4, 2026

Copy link
Copy Markdown
Owner

What

runs/real_partition_experiment.py hard-coded /Users/allans/code/polygram and /Users/allans/code/sae-forge/examples on sys.path, so it only ran on the original macOS checkout (it raised on this Linux host).

Change

  • Resolve the polygram root from Path(__file__).resolve().parents[1].
  • Locate the sae-forge sibling repo via SAE_FORGE_ROOT env override, defaulting to the sibling directory.

No behavioural change beyond portability. Byte-compiles; both paths resolve to existing dirs on a Linux checkout.

🤖 Generated with Claude Code

…S home

real_partition_experiment.py hard-coded /Users/allans/code/... on
sys.path, so it only ran on the original author's macOS checkout. Resolve
the polygram root relative to the script's location, and locate the
sae-forge sibling repo via a SAE_FORGE_ROOT env override (default: sibling
dir). Now runs on any checkout/machine.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jascal
jascal merged commit 8cc14b8 into main Jun 4, 2026
2 checks passed
@jascal
jascal deleted the fix/portable-script-paths branch June 4, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant