Relative imports
Kent Johnson
kent37 at tds.net
Sat Mar 5 10:34:45 EST 2005
Chris wrote:
> After reading that link I tried to change my imports like this:
> " from .myPythonFileInTheSameFolder import MyClass"
This style of import is not yet implemented.
> I'm getting more and more confused...
> How can I correctly do a relative import ?
I think your choices are
- keep doing what you have been doing and ignore the warnings from PyLint
- keep doing what you have been doing and turn off the warnings from PyLint
- rewrite your imports to be absolute imports
Kent
More information about the Python-list
mailing list