Hi,
I read about having __init__.py files because they are required to make Python treat the directories as containing packages.
I have my scripts in directory /home/pi/myPiConfig/ and that scripts are:
__init__.py - empty script
mypi_settings.py
Then I have another child directory /home/pi/myPiConfig/DHT11 with:
__init__.py - empty script
dht11_check.py
My problem is that if I open file dht11_check.py in python ide with code:
#!usr/bin/python
import mypi_settings as mysettings
and I get error:
ImportError: No module named mypi_settings
why? I have removed all pyc files and recompile with no success.
What have i missed? Have can I inport py script from parent directory?
Thanx,
Faramon