I have this line here:
sys_status = status().read()
This should call the imported class/function:
class status(self):
def read(self):
with open("/home/pi/project/mytext.txt", "r+") as fo:
fo.seek(0, 0)
sys_status = fo.read(1)
fo.closed
return status
The result on the sys_status variable should be the readable text on the textfile, but instead when I call this:
sys_status = status().read()
print "Status:", sys_status
The result is: Status: keypaddweb.status
Whats wrong with my code?