Skip to content

Corpus: support relative file paths #1132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leskovecg
Copy link
Collaborator

Issue

Fixes #534 – Corpus widget now supports saving and loading relative file paths.

Description of changes

This PR adds support for saving relative paths when a workflow is saved, and resolving them properly when the workflow is reloaded in a different directory.

  • Added fix_relative_path and fix_absolute_path utility functions.
  • Modified OWCorpus to save/load relative file paths using the current workflow location.
  • Adjusted test test_relative_corpus_path_serialization to verify correct path resolution.

Includes

  • Code changes
  • Test
  • Documentation (not required)

@leskovecg leskovecg force-pushed the fix-relative-corpus-path branch from e2547d9 to c4552bd Compare July 14, 2025 08:02
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.

Corpus: save data set as relative, check if in same folder
1 participant