algorithmiaio/dev-center

Explain how to import when you're working with folders

Closed this issue · 1 comments

from src.folder.file
instead of:
from folder.file

Related to:

from folder.file import something

It throws the error:
"ImportError: No module named folder.file"

To be more clear: Python3 users will need to use:
from .somefile import *

Just an fyi: the syntax is different for python 2 and 3