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

Changeset 1315

Show
Ignore:
Timestamp:
09/02/06 04:01:19
Author:
fumanchu
Message:

Fix for CP 2 for #445 (autoreload and '<string>' in sys.modules).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/lib/autoreload.py

    r817 r1315  
    99RUN_RELOADER = True 
    1010reloadFiles = [] 
     11ignoreFiles = ['<string>'] 
    1112 
    1213def reloader_thread(freq): 
     
    2122    while RUN_RELOADER: 
    2223        for filename in map(fileattr, sys.modules.values()) + reloadFiles: 
    23             if filename
     24            if filename and filename not in ignoreFiles
    2425                if filename.endswith(".pyc"): 
    2526                    filename = filename[:-1] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets