settings = {}
-def configure(pelicanobj):
- settings['path'] = pelicanobj.settings.get('PATH', 'content')
- pass
-
class Image(Directive):
"""Image directive
continue
# Open the files and calculate the overall width
- absuri = uri.format(filename=os.path.join(os.getcwd(), settings['path']))
+ absuri = uri.format(filename=os.path.join(os.getcwd(), settings['PATH']))
im = PIL.Image.open(absuri)
exif = {
PIL.ExifTags.TAGS[k]: v
return [grid_node]
+def configure(pelicanobj):
+ settings['PATH'] = pelicanobj.settings.get('PATH', 'content')
+
def register():
signals.initialized.connect(configure)