-
Notifications
You must be signed in to change notification settings - Fork 42
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
Finding langNames default using pkg_resources issue #107 #129
base: master
Are you sure you want to change the base?
Conversation
It would build from source properly with default langNames but there is an issue with tornado but that's a separate issue. Please check out this PR. |
This doesn't seem to be getting the correct path when I use
|
Yeah there's a problem. I looked in my system directories and didn't understand why is |
https://github.com/apertium/apertium-apy/blob/master/setup.py#L68. There's probably a different |
Please check if it works for you. |
This is way too hardcoded and will almost certainly fail depending on how the installation is done. |
Should I find another way/package for finding path for datafiles in python? |
The problem is we are looking for apertium_apy installation and datafile is not present in the same folder |
|
Hey, I have come up with an idea. I am finding langNames.db in root now. Will that be fine? |
No, this is a bad idea for a number of reasons including that we shouldn't be searching around the user's filesystem (let's be privacy-sensitive). |
Did neither pkg_resources not pkgutil have anything useful? I'm relatively certain they will. |
I have been trying to find out if any of the function in both the packages can help. Both rely on installed modules, which in our case is apertium_apy |
Either we do path manipulation as in my previous PR ( the hardcoded one) becuase when we search apertium_modules it takes us to installed package. Well I will keep on searching. |
b36ac97
to
51fb9c5
Compare
Starting fresh pull request that solves issue 107