Replace hardcoded Windows paths with portable relative paths#2
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Owner
|
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Co-authored-by: Philosopher0X <143936113+Philosopher0X@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for root directory commands
Replace hardcoded Windows paths with portable relative paths
Jan 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two Python scripts contained hardcoded Windows drive paths (
x:\FPGA\Project\embedfire_FPGA_ks), breaking portability across systems and directory structures.Changes
read_docs.py: Useos.path.dirname(os.path.abspath(__file__))instead of hardcodedx:\FPGA\Project\...find_pins.py: Use script-relative path resolution instead of absolute Windows pathBoth scripts now dynamically resolve file paths relative to their own location:
Scripts now work from any clone location on any OS.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.