May 13th, 2013, 11:55 AM
Join Date: Apr 2013
Time spent in forums: 4 h 21 m 41 sec
Reputation Power: 0
Constructor not firing
There must be something wrong with me. It's probably something I am not seeing right now and need someone else to look at. So what I did was 'porting' my project that I was working on earlier called Comodi, to the MVC framework, well kinda. So I begin with my bootstrap class and comodi.py that starts it all. I try to test it, but it isn't constructing my constructor in my Bootstrap class.
import libs.Bootstrap as libs_bootstrap
print 'Starting bootstrap...'
Bootstrap = libs_bootstrap.Bootstrap
Bootstrap.py located in libs/
import models.lcd as model_lcd
lcd = model_lcd.Adafruit_CharLCD()
lcd.lines('', ['Welcome to Comodi', True], ['Loading...', True])
After a couple of checks just to be sure I found the following:
- It is reading through the Bootstrap.py, it doesn't hang.
- All of the modules are imported correctly.
I do not get the output that I should get from the Bootstrap class (the print method doesn't fire, neither does the lcd show anything)
Here are all the files and directories
- LCD info.txt