mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Support for python -m pelican
Addresses https://github.com/getpelican/pelican/issues/2523 Note: @avaris made a good point that there is no need to replace the existing module runner for pelican quickstart or the other tools as this can be run via: > python -m pelican.tools.pelican_quickstart
This commit is contained in:
parent
d8d230b554
commit
4bae94834e
3 changed files with 18 additions and 1 deletions
10
pelican/__main__.py
Normal file
10
pelican/__main__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"""
|
||||
python -m pelican module entry point to run via python -m
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from . import main
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue