mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
|
if args.autoreload:
|
||||||
while True:
|
while True:
|
||||||
try:
|
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()
|
pelican.run()
|
||||||
time.sleep(.5) # sleep to avoid cpu load
|
time.sleep(.5) # sleep to avoid cpu load
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -19,7 +19,7 @@ setup(
|
||||||
packages = ['pelican'],
|
packages = ['pelican'],
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
install_requires = requires,
|
install_requires = requires,
|
||||||
scripts = ['bin/pelican'],
|
scripts = ['bin/pelican', 'tools/pelican-themes'],
|
||||||
classifiers = ['Development Status :: 5 - Production/Stable',
|
classifiers = ['Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue