How do I define the function in the importer so that it is visible inside imported? I tried this
importer.py is
importer.py
def build(): print \"bui
def build(): print("building") build() #this extra call will print "building" once more.
from importer import build build()
Note that both importer.py and imported.py must be in same directory. I hope this solve your problem