apertium / apertium-apy

📦 Apertium HTTP Server in Python
https://wiki.apertium.org/wiki/Apertium-apy
GNU General Public License v3.0
32 stars 42 forks source link

language names database not automatically found in packaged version #150

Open jonorthwash opened 4 years ago

jonorthwash commented 4 years ago

When running [debian-]packaged version, langNames.db is not automatically found, and so apertium-apy must be run with -l /usr/share/apertium-apy/langNames.db.

sushain97 commented 4 years ago

https://github.com/apertium/apertium-apy/blob/b9455b315f6675f70628bde92cc548798749c7ec/apertium_apy/apy.py#L185

I believe python pkg-utils affords some functionality for finding the right place for these things. Although, I would only want it to default to that path in an actual package deployment, not a source deployment.