Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #438: autoreload.patch

  • autoreload.py

    old new  
    55import sys 
    66import time 
    77import thread 
     8import errno 
    89 
    910RUN_RELOADER = True 
    1011reloadFiles = [] 
     
    2223                    filename = filename[:-1] 
    2324                try: 
    2425                    mtime = os.stat(filename).st_mtime 
    25                 except OSError: 
     26                except OSError, e: 
     27                    if e.errno == errno.ENOENT: 
     28                        continue 
    2629                    sys.exit(3) # force reload 
    2730                if filename not in mtimes: 
    2831                    mtimes[filename] = mtime 

Hosted by WebFaction

Log in as guest/cpguest to create tickets