mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Dont remove the output folder if it's the source one ;)
This commit is contained in:
parent
01b6d8eb44
commit
9a51102f29
2 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
import argparse
|
||||
|
||||
from pelican.utils import clean_output_dir
|
||||
from pelican.generators import Generator
|
||||
from pelican.processors import (ArticlesProcessor, PagesProcessor,
|
||||
StaticProcessor, PdfProcessor)
|
||||
|
|
@ -30,7 +29,6 @@ if __name__ == '__main__':
|
|||
|
||||
generator = Generator(args.settings, args.path, args.theme,
|
||||
args.output, markup)
|
||||
clean_output_dir(generator.output_path)
|
||||
|
||||
processors = [ArticlesProcessor, PagesProcessor, StaticProcessor]
|
||||
if generator.settings['PDF_PROCESSOR']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue