How do I make these relative imports work in Python 3?
问题 I have a directory structure that looks like this: project/ __init__.py foo/ __init.py__ first.py second.py third.py plum.py In project/foo/__init__.py I import classes from first.py , second.py and third.py and put them in __all__ . There's a class in first.py named WonderfulThing which I'd like to use in second.py , and want to import by importing * from foo . (It's outside of the scope of this question why I'd like to do so, assume I have a good reason.) In second.py I've tried from .foo