mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Remove the dependency to pkgutil for the plugins
This commit is contained in:
parent
7184484488
commit
c5a63c953a
9 changed files with 84 additions and 89 deletions
|
|
@ -13,7 +13,7 @@ from blinker import signal
|
|||
from jinja2 import Environment, FileSystemLoader
|
||||
from jinja2.exceptions import TemplateNotFound
|
||||
|
||||
from pelican.utils import copytree, get_relative_path, process_translations, open
|
||||
from pelican.utils import copy, get_relative_path, process_translations, open
|
||||
from pelican.contents import Article, Page, is_valid_content
|
||||
from pelican.readers import read_file
|
||||
from pelican.log import *
|
||||
|
|
@ -214,7 +214,7 @@ class ArticlesGenerator(Generator):
|
|||
and self.settings['FALLBACK_ON_FS_DATE']:
|
||||
metadata['date'] = datetime.fromtimestamp(os.stat(f).st_ctime)
|
||||
|
||||
self.signal['pelican_article_generate_context'].send(self, metadatas=metadatas)
|
||||
self.signal['pelican_article_generate_context'].send(self, metadata=metadata)
|
||||
article = Article(content, metadata, settings=self.settings,
|
||||
filename=f)
|
||||
if not is_valid_content(article, f):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue