summaryrefslogtreecommitdiffstats
path: root/extra_plugins
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2014-11-27 15:20:14 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2014-11-27 15:20:14 +0100
commit0af809bf174b5f9af20f602e6eb135c519c7af70 (patch)
treefc7aa4ee21adca0e00ecabf46a6799a4f5cea499 /extra_plugins
parent9e3440a95d9d54dc747fa2f9be0fa8a97ed44832 (diff)
downloadlv2site-0af809bf174b5f9af20f602e6eb135c519c7af70.tar.xz
add amSynth, fix gallery plugin (python 3).
Diffstat (limited to 'extra_plugins')
-rw-r--r--extra_plugins/gallery.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra_plugins/gallery.py b/extra_plugins/gallery.py
index 3c5011d..84d5a6f 100644
--- a/extra_plugins/gallery.py
+++ b/extra_plugins/gallery.py
@@ -1,6 +1,6 @@
-import logging, json, os, sys, time, Image
+import logging, json, os, sys, time
from pelican import signals
-from PIL import ImageOps
+from PIL import Image, ImageOps
"""
@@ -163,10 +163,10 @@ class Gallery():
if not os.path.exists(preset_dir):
os.makedirs(preset_dir)
else:
- print "You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs."
+ print("You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs.")
def get_files_from_data(self):
- print "getting files for %s" % self.absolute_src_path
+ print("getting files for %s" % self.absolute_src_path)
from os import listdir
from os.path import isfile, join
return [ f for f in listdir(self.absolute_src_path) if isfile(join(self.absolute_src_path,f)) and f != ".DS_Store" ]