1
0
Fork 0
forked from github/pelican

Merge branch 'master' of github.com:ametaireau/pelican

This commit is contained in:
Alexis Metaireau 2011-05-19 17:36:34 +01:00
commit 19ed8d5ef1
2 changed files with 8 additions and 2 deletions

View file

@ -140,7 +140,13 @@ def main():
if args.autoreload:
while True:
try:
if files_changed(pelican.path, pelican.markup):
# Check source dir for changed files ending with the given
# extension in the settings. In the theme dir is no such
# restriction; all files are recursively checked if they
# have changed, no matter what extension the filenames
# have.
if files_changed(pelican.path, pelican.markup) or \
files_changed(pelican.theme, ['']):
pelican.run()
time.sleep(.5) # sleep to avoid cpu load
except KeyboardInterrupt:

View file

@ -19,7 +19,7 @@ setup(
packages = ['pelican'],
include_package_data = True,
install_requires = requires,
scripts = ['bin/pelican'],
scripts = ['bin/pelican', 'tools/pelican-themes'],
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: GNU Affero General Public License v3',