I have a script with the following structure
./
/foo
__init__.py
/bar
__init__.py
module.py
I want to use module.py both on foo and bar package, but i can't find a way to import it!
I can put the module inside both packages, but if I need to make any alteration I would have to do it on both.
import module? Ifmodule.py's directory is on the path, that should work. If it's not on the path, then you couldn't have imported your packages either.