My problem is quite easy but I can not find a good answer because the search engines are ambiguous on the term "module". What I want do to is roughly this :
Module : a.py
x = 2 Module : b.py
import a Now, I want to be able to access x from b without using qualified name (i.e. without typing a.x, just with x). In my situation I cannot use :
from a import x because I don't know which elements a will contains. I can not use
from a import * neither. Is there any simple way to merge or join the modules (I mean the Object Modules) ?
from a import *?