]> oss.titaniummirror.com Git - webber.git/blobdiff - webber.py
plugins doc: fix link
[webber.git] / webber.py
index 542df6da3172ac4eba2090b38d854ca28a54b1a1..9b3d0728baa2af88b79360fc1a0fddb0d8b16990 100644 (file)
--- a/webber.py
+++ b/webber.py
@@ -116,7 +116,7 @@ class File(Holder):
 
                # Warn about long titles / long linktitles
                if len(self.linktitle) > 20:
-                       log('%s: define a shorter "linktitle: xxx"')
+                       log('%s: define a shorter linktitle' % self.rel_path)
 
                self.contents = "".join(txt)
 
@@ -337,13 +337,16 @@ hooks = {}
 def load_plugins():
        """Loads all plugins in the plugins directory."""
        sys.path.append(os.path.join(get_program_directory(), "plugins"))
+       if cfg.has_key("plugin_dirs"):
+               for s in cfg.plugin_dirs:
+                       sys.path.append(s)
        for s in cfg.plugins:
                #print "import:", s
-               #try:
-               exec "import %s" % s
-               #except:
-               #       print "Could not import plugin '%s'" % s
-               #       sys.exit(1)
+               try:
+                       exec "import %s" % s
+               except:
+                       print "Could not import plugin '%s'" % s
+                       sys.exit(1)
 
 
 def set_hook(name, last=False):