Skip to content

Updating file paths from absolute to relative - #1

Merged
334456777 merged 6 commits into
mainfrom
copilot/update-absolute-paths-to-relative
Jun 5, 2026
Merged

Updating file paths from absolute to relative#1
334456777 merged 6 commits into
mainfrom
copilot/update-absolute-paths-to-relative

Conversation

Copilot AI commented Jun 5, 2026

Copy link
Copy Markdown

Pull request created by AI Agent

@334456777
334456777 marked this pull request as ready for review June 5, 2026 00:52
Copilot AI review requested due to automatic review settings June 5, 2026 00:52
@334456777
334456777 merged commit 0eeafec into main Jun 5, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves portability by replacing hard-coded absolute filesystem paths with project-relative paths, aligning runtime file locations with the repository’s working directory layout.

Changes:

  • Updated build.py to use relative defaults for BASE (source/) and DB (chat.db).
  • Updated query.py media export to default into a local tmp/ directory and ensure it exists before writing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
build.py Switches BASE and DB from absolute paths to relative project-local paths.
query.py Exports extracted media to tmp/ by default (instead of /tmp) and creates the directory when needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread query.py
Comment on lines +19 to +20
TMP_DIR = "tmp"

@334456777
334456777 deleted the copilot/update-absolute-paths-to-relative branch June 5, 2026 01:01
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.

3 participants