diff --git a/pelican/contents.py b/pelican/contents.py index 43333e18..89e0397d 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -305,11 +305,11 @@ class StaticContent(object): settings = copy.deepcopy(_DEFAULT_CONFIG) self.src = src self.url = dst or src - self.filepath = os.path.join(settings['PATH'], src) + self.filename = os.path.join(settings['PATH'], src) self.save_as = os.path.join(settings['OUTPUT_PATH'], self.url) def __str__(self): - return self.filepath + return self.filename def is_valid_content(content, f): diff --git a/pelican/generators.py b/pelican/generators.py index ce102a31..664f666c 100644 --- a/pelican/generators.py +++ b/pelican/generators.py @@ -520,8 +520,8 @@ class StaticGenerator(Generator): # copy all StaticContent files for sc in self.staticfiles: mkdir_p(os.path.dirname(sc.save_as)) - shutil.copy(sc.filepath, sc.save_as) - logger.info('copying %s to %s' % (sc.filepath, sc.save_as)) + shutil.copy(sc.filename, sc.save_as) + logger.info('copying {} to {}'.format(sc.filename, sc.save_as)) class PdfGenerator(Generator):