I have folders structure like this:
folder_a/
|_______ x1.py
|_______ x2.py
|_______ x3.py
|
folder_b/
|_______ zzz.py
In zzz.py I use this code below to import scripts from folder_a:
import sys
sys.path.insert(0, '../folder_a/')
from x1 import *
I think that this is much more slower and not pythonic-like to use this mechanism of import. I created __init__.py
inside folder_a to make python think that this is a package, but get the error
ImportError: attempted relative import with no known parent package
It does not fit into my head how to apply this system of modules and packages in my case. How to fix it?