mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 0a4c0d35b0 into fa1d4d937c
This commit is contained in:
commit
01291c7683
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ class Pelican(object):
|
|||
# erase the directory if it is not the source and if that's
|
||||
# explicitly asked
|
||||
if (self.delete_outputdir and not
|
||||
os.path.realpath(self.path).startswith(self.output_path)):
|
||||
os.path.commonpath((self.path,
|
||||
self.output_path)) != self.output_path):
|
||||
clean_output_dir(self.output_path, self.output_retention)
|
||||
|
||||
for p in generators:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue