diff --git a/pelican/__init__.py b/pelican/__init__.py index de12917d..9d063e9d 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -163,7 +163,7 @@ 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.commonpath((self.path, + os.path.commonpath((self.path, self.output_path)) != self.output_path): clean_output_dir(self.output_path, self.output_retention)