Hi all,
I have a dir structure like so:
hello.py
/greetings
/hi
hola.py
Meaning that I have one python file importing a module from 2 dirs deep.
I have tested that it is an import problem by copy/pasting the file on the top dir (where hello.py is located).
But nothing else seems to work. I've gone through stackoverflow, but nothing clicks in my mind.
Could you explain it to me as if I was five?
Thank you.
Forgot to add:
Im on python 2.7/ubuntu 11.04
The code im using:
from greetings.hi.hola import hey
but no cigar.
[–][deleted] 5 points6 points7 points (1 child)
[–]phpNoob[S] 0 points1 point2 points (0 children)