__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
Смотрите видео what is __init__.py file in Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Al Sangam 06 Октябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,885 раз и оно понравилось 16 людям.