__init__.py file in python
It treats directory as package and files inside it as module so that
one can import it in another folder.
Let us see the practical example See from below link
https://github.com/AISangam/python-__...
To import function_second package and its module inside another folder function_first, __init__.py file is used.
Note Points
1.) sys.append is used to insert the path of another folder.
2.) create an empty __init file inside the folder whose file you need to import in another folder.
Extra information in this video
Let us also see Request Header Message in this video. This is the recent post AI Sangam has created.
http://www.aisangam.com/blog/http-req...
Thanks for watching
Please do join us at
Facebook: https://www.facebook.com/aisangam4you...
Linkedln: / ai-sangam-819662164
Reddit: / ai_sangam
Watch video what is __init__.py file in Python online without registration, duration hours minute second in high quality. This video was added by user Al Sangam 06 October 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,885 once and liked it 16 people.