forked from github/pelican
Merge branch 'master' of github.com:ametaireau/pelican
This commit is contained in:
commit
19ed8d5ef1
2 changed files with 8 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue