Login Register






problem with my code filter_list
Author
Message
problem with my code #1
Hi all.
can any one tell me if something false with my code.
Because i dont know why it dosn't work.

Code:
from os import system def code(): while True: time.sleep(60) fp = file('folder/filename.txt', 'r') p = fp.read() fp.close() if p == str(1): try: system("python2.7 folder/filename.py") except KeyboardInterrupt: print 'Exiting...' cnx.RegisterDisconnectHandler(code)

Reply





Messages In This Thread
problem with my code - by samo_mybb_import15280 - 03-03-2014, 12:21 PM