You are here: Home Tech Reload Non-Python Files with Paster
Navigation
 

Reload Non-Python Files with Paster

by Reed O'Brien last modified Aug 17, 2008 10:13 PM

a quickie to get templates reloaded when edited and running under paster --reload

import paste.reloader
pts = os.listdir(os.path.dirname(__file__) + '/templates')
for pt in pts:
    paste.reloader.watch_file(pt)
Document Actions