respect output directory

This commit is contained in:
Elan Ruusamäe 2012-09-16 18:04:41 +02:00
parent f55d6c2799
commit 0537d952b2
2 changed files with 8 additions and 3 deletions

View file

@ -217,7 +217,7 @@ def convertfile(pagedir, overwrite = False):
content = readfile(curr_rev)
content = convert_markup(pagename, content)
out_file = dw.wikiFn(pagename)
out_file = os.path.join(output_dir, dw.wikiFN(pagename))
print "dokuname: [%s]" % out_file
writefile(out_file, content, overwrite = overwrite)