def theUltimateFunction(): from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import SomeSubScript SomeMainScript.my_main_funct() SomeSubScript.my_sub_function()
# # Import from a module # from mymodule import my_func # my_func() # Import from a package from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import MySubScript SomeMainScript.report_main() MySubScript.sub_report()
from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import SomeSubScript SomeMainScript.my_main_funct() SomeSubScript.main()
from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import SomeSubScript SomeMainScript.MainFun() SomeSubScript.SubFun()
from MyMainPackage import SomeMainScript from MyMainPackage.MySubPackage import SomeSubScript SomeMainScript.printModule() SomeSubScript.printModule()
from MyMainPackage import SomeMainScript SomeMainScript.printer()
from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import SomeSubScript SomeMainScript.function1() SomeSubScript.function2()
from MyMainPackage import SomeMainScript from MyMainPackage.SubPackage import SomeSubScript SomeMainScript.MainScript() SomeSubScript.SubScript()