dimanche 29 mars 2015

Python: Although __init__.py is empty, my project only properly works with it


Vote count:

0




In order to put some structure in the application I am developing I have create different folder to store my scripts.


During the development, I realized that my IDE (PyCharm) started creating init.py files. By taking a closer look at those files, all I can see is author = 'name'.


I decided then to remove such files, since they were 'empty' but it seems they are import. My references between scripts in different folders are no longer working. (e.g. scripts in my '/root/hardware' folder make use of a script stored in the folder '/root/configuration')


Questions: Where exactly are the folder references stored if not in the init.py itself? What are those init files good for?



asked 48 secs ago







Python: Although __init__.py is empty, my project only properly works with it

Aucun commentaire:

Enregistrer un commentaire