1
0
Fork 0
forked from github/pelican

add a sleep to the autoreload loop since we dont need too high cpu load

This commit is contained in:
Ronny Pfannschmidt 2011-05-06 22:05:13 +02:00
commit d03a412e5b

View file

@ -1,5 +1,6 @@
import argparse
import os
import time
from pelican.generators import (ArticlesGenerator, PagesGenerator,
StaticGenerator, PdfGenerator)
@ -142,6 +143,7 @@ def main():
pelican.run()
except KeyboardInterrupt:
break
time.sleep(.5) # sleep to avoid cpu load
else:
pelican.run()
except Exception, e: