In [1]:
import mod1

In [2]:
mod1.func()


-- mod1.func is called

In [3]:
from mod1 import func

In [4]:
func()


-- mod1.func is called

In [5]:
import dir_for_mod.mod2

In [6]:
dir_for_mod.mod2.func()


-- dir_for_mod.mod2.func is called

In [7]:
from dir_for_mod import mod2

In [8]:
mod2.func()


-- dir_for_mod.mod2.func is called

In [9]:
from dir_for_mod.mod2 import func

In [10]:
func()


-- dir_for_mod.mod2.func is called