from MyMainPackage import some_main_script as sms
from MyMainPackage.SubPackage import mysubscript as mss

sms.report_main()
mss.sub_report()
Пример #2
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 10 22:35:22 2018

@author: Bill Armstrong
         GitHub:  Libbyddap
"""

from MyMainPackage import some_main_script
from MyMainPackage.SubPackage import mysubscript

some_main_script.report_main()
mysubscript.sub_report()
Пример #3
0
from MyMainPackage.some_main_script import report_main
from MyMainPackage.SubPackage import mysubscript as sb

report_main()

sb.sub_report()
Пример #4
0
from MyMainPackage.some_main_script import report_main
from MyMainPackage.SubPackage import mysubscript
from mymodule import my_func

my_func(
)  # Since it's imported directly the function --> It's not necessary to indicate the sumbmodule or package

report_main(
)  # Since it's imported directly the function --> It's not necessary to indicate the sumbmodule or package

mysubscript.sub_report(
)  # Since it's not imported directly the function --> It's necessary to indicate the sumbmodule or package
Пример #5
0
from mymodule import myfunc
from MyMainPackage.SubPackage.mysubscript import sub_report
from MyMainPackage.some_main_script import report_main
myfunc()
sub_report()
report_main()
Пример #6
0
def main():
    my_func()
    some_main_script.report_main()
    mysubscript.sub_report()
from MyMainPackage.some_main_script import report_main
from MyMainPackage.SubPackage import mysubscript

report_main()

mysubscript.sub_report()