I am trying to understand what the best practices are with regards to Python\'s (v2.7) import mechanics. I have a project that has started to grow a bit and lets say my code
Try this:
package1.py __init__.py
package1.py
__init__.py
test.py
class abc: a = 'hello' def print_a(self): print(a)
from .package1 import abc
From package1.package1 import abc
I use these __init__.py to import from a package.