On Mon, Jul 14, 2014 at 5:34 PM, Martín Ferrari <tin...@tincho.org> wrote: > > Hi! > > This is probably a FAQ, but I cannot find it anywhere in the docs. > > I get a F0401 (Unable to import) when importing a flask external module, > which involves a trick on __init__ on the parent package to locate the > actual module, which has a different name (flask.ext.httpauth is in fact > flask_httpauth, with no package name). > > I understand that pylint avoids executing code on imports, so that > explains this message. > > The question would be: is there a way to fix this situation without > ignoring everything that uses that module? Adding an 'import > flask.ext.httpauth' in the init-hook does not seem to solve it. > > Thanks! > > -- > MartÃn Ferrari (Tincho) > _______________________________________________ > code-quality mailing list > code-quality@python.org > https://mail.python.org/mailman/listinfo/code-quality
Hi there, This might be of interest to you: http://stackoverflow.com/questions/16061514/pylint-pylint-unable-to-import-flask-ext-wtf Alternatively, there is no good way for you to do this (that I'm aware of) other than ignoring things that use flask.ext.* Cheers, Ian _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality