-
Notifications
You must be signed in to change notification settings - Fork 31
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
Resource resolving not working for $PWD/ocrd-resources #727
Comments
Oh no, I knew this would come 😦 The reason for this design choice was actually backwards compatibility (plus a perceived principle of least astonishment) by expecting relative path names to denote to the CWD directly (without extra implicit prefixes), in the workspace. It was a conscious decision, open to discussion at the time: But there was already an adversarial argument: being able to use
This argument lead to a respective change in spec (adding the prefix) and thus docs, but not in core: I did back this latest change (or was not aware of it) at the time, but personally do not find that use-case too convincing an argument in favour of the prefix: You could always redefine the XDG variables in your Docker/CI setup, and Docker/CI should respect/reflect real-world user demand, not the other way round. Thus, @kba, since it has never been implemented that way anyhow, would you consider changing the spec back at that spot? |
Yes, I think we should drop the |
@mikegerber does that conclude the case for you? |
I think so, but https://ocr-d.de/en/spec/ocrd_tool#file-parameters does not seem up to date yet? (My main issue is that the documentation does not match the behaviour) |
Indeed: that's still the old version. https://github.com/OCR-D/spec/blob/master/ocrd_tool.md#file-parameters has it right, so the website needs to be updated. (And we should probably notify users via Gitter, even if the implemented behaviour has not changed.) |
Yes, there was an issue with the publishing workflow for the specs, has been fixed and site has been updated.
|
I have (due to some quick hack to check something) my models in a directory
$PWD/ocrd-resources
, according to the docs:ocrd-calamari-recognize
fails to find these:I believe that the code at
core/ocrd_utils/ocrd_utils/os.py
Line 68 in d4a8539
I'm not submitting a PR because I don't know if there are other reasons for leaving out
'ocrd-resources', executable
here.(If I'm putting the models into
qurator-gt4histocr-1.0
instead ofocrd-resources/ocrd-calamari-recognize/qurator-gt4histocr-1.0
, it works.)The text was updated successfully, but these errors were encountered: