core icon indicating copy to clipboard operation
core copied to clipboard

resmgr download: allow arbitrary locations

Open bertsky opened this issue 2 years ago • 0 comments

Currently, our precaution of only downloading to those resource-locations which the processor supports resolving, is quite user-unfriendly:

ERROR ocrd.cli.resmgr - The selected --location {location} is not in the {this_executable}'s resource search path, refusing to install to invalid location

In my case, the module directory is /usr/share/tesseract-ocr/4.00/tessdata/frak2021.traineddata (from Tesseract deb), which is not writable for normal users (but sudo would need the venv).

As a user I should be allowed to override --location regardless. At least -l cwd should always be possible.

So can we downgrade the error to a warning?

bertsky avatar Jun 29 '23 17:06 bertsky