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)
+ exec "import %s" % s
def set_hook(name, last=False):
direc = directories[file.direc]
+ # Output-Filename "berechnen"
+ if file.render and file.render == "html":
+ file.out_path = os.path.splitext(s)[0] + ".html"
+
run_hooks("scan",
direc=direc,
file=file)
continue
file.contents = contents
- # Output-Filename "berechnen"
- file.out_path = os.path.splitext(fname_in)[0] + ".html"
-
for fname_in in files:
file = files[fname_in]
current_file = file