import mymodule mymodule.say_hello() # if mymodule is in subdirectory import subdir.mymodule as m m.say_hello()