-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Module name is not always the moduledir. #29
Comments
Please describe the problem in detail. Also, are you proposing a solution? |
If I have a module named scikit-learn installed. when I call IsModuleInstalled() it should return true. The function assumes that the module is in a folder named scikit-learn in site-packages folder. But the actual folder name is scikit_learn. Thus the function always returns false. |
I see. But how do we solve that problem? |
@henon The only way to resolve this is by looking into the Alternatively the |
So all we gotta do is check for either snake_case or kebab-case? |
That seems to be the case with Maybe using a Regex would be more useful. |
Looking at it again I think that's something that |
Eg "allennlp-models" directory name is allennlp_models
The text was updated successfully, but these errors were encountered: