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

Processor.resolve_resource ignores without-extension #1187

Open
bertsky opened this issue Feb 11, 2024 · 0 comments
Open

Processor.resolve_resource ignores without-extension #1187

bertsky opened this issue Feb 11, 2024 · 0 comments
Assignees

Comments

@bertsky
Copy link
Collaborator

bertsky commented Feb 11, 2024

AFAICS the ocrd-tool.json's parameter_usage is nowhere used (except in a log message), and resolving resources without-extension does not work.

It looks like instead of os.path.exists, in this case one would need to (somehow) look up the typical extension(s) from the resource list and then go look for them in the filesystem.

@kba kba self-assigned this Mar 13, 2024
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

No branches or pull requests

2 participants