-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (23 loc) · 668 Bytes
/
main.py
File metadata and controls
32 lines (23 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import logging
import parent
from parent import first_child
from parent import second_child
from parent.first_child import grandchild
logger = logging.getLogger(__name__)
def main():
logger.info('About to call package modules!')
# call parent
logger.info('Calling parent')
parent.do_thing()
# call first_child
logger.info('Calling first child!')
first_child.do_thing()
# call second_child
logger.info('Calling second child!')
second_child.do_thing()
# call grandchild
logger.info('Calling grandchild!')
grandchild.do_thing()
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
main()