I'm trying to use a piece of code I got from somewhere. The code has a structure equivalent to this:
project/
test.py
somepackage/
__init__.py
file1.py
file2.py
__init__.py contains only:
from file1 import *
from file2 import *
while in test.py I have
from somepackage import *
Running test.py gives an error:
AttributeError: module 'somepackage' has no attribute 'file1'
I'm using python version 3.5 if that matters