mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-18 00:44:29 -05:00
[PR #1678] [MERGED] fix(mlsysim): replace hardcoded Mac path in interviewer.py with relative Path #20863
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1678
Author: @Shashank-Tripathi-07
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/mlsysim-interviewer-hardcoded-path📝 Commits (1)
b143875fix(mlsysim): replace hardcoded Mac path in interviewer.py with relative Path📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
mlsysim/mlsysim/cli/interviewer.py(+3 -1)📄 Description
Bug
mlsysim/mlsysim/cli/interviewer.pyline 74 had a hardcoded Mac-specific absolute path in its__main__smoke-test block:This crashes immediately on any non-Mac machine (Windows, Linux, CI).
Fix
Replaced with a
Path(__file__)-relative path that resolves correctly on all platforms:Also added the missing
from pathlib import Pathimport.interviewer.pyis atmlsysim/mlsysim/cli/interviewer.py--.parents[3]correctly resolves to the repo root.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.