Skip to content
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

fix: correct path separator issue in extract_source_from_url function for Windows compatibility #280

Conversation

areebahmeddd
Copy link
Member

Description

The extract_source_from_url function was returning paths with backslashes on Windows, which caused test failures due to path separator differences.

Solution

Updated the extract_source_from_url function to replace backslashes with forward slashes, ensuring that the function always returns paths with Unix-like separators.

Related issue(s)

  • Not applicable

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

LGTM, also I suggest adding a comment

openfoodfacts/images.py Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 4, 2024

@alexgarel alexgarel merged commit 385fbdb into openfoodfacts:develop Nov 4, 2024
5 checks passed
@areebahmeddd areebahmeddd deleted the fix/correct-path-separator-windows branch November 4, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants