diff options
author | Timo Richter <timo@iera.de> | 2011-08-17 15:47:57 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-08-26 14:10:46 +0200 |
commit | 3de9c387a039670adfa3e6cfa851ea1dfcbc6117 (patch) | |
tree | 1cb16103922677b33de70a0b678e97cdac326003 /helpcontent2/wiki-to-help/convert.py | |
parent | 818e5670a47b56963411e29f38a83a55e2eedd86 (diff) |
Tables are shown now in docbook because of my mwlib_mod
Changed the default path for images.
Diffstat (limited to 'helpcontent2/wiki-to-help/convert.py')
-rwxr-xr-x | helpcontent2/wiki-to-help/convert.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/helpcontent2/wiki-to-help/convert.py b/helpcontent2/wiki-to-help/convert.py index 80187a68d1..70a660ddc8 100755 --- a/helpcontent2/wiki-to-help/convert.py +++ b/helpcontent2/wiki-to-help/convert.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +#!/usr/bin/python -i """ Convert an XML-Dump to platformspecific help files. Copyright 2011 Timo Richter @@ -115,17 +116,17 @@ class Converter(object): def setupImgPath(self): """ - If --images is not given, the path will be in the format "name.jpg". + If --images is not given, the path will be in the format "images/name.jpg". If --images is given a zipfile, it is being extracted to "images/". If --images is a directory, it is being copied to "images/". The filenames in images/ are being stored to self.includeFiles. """ imgDest = "images" # puts images to output/imgDest/ if not self.imgPath: - self.imgPath = "IMAGENAME" + self.imgPath = os.path.join(imgDest,"IMAGENAME") return extension = os.path.splitext(self.imgPath)[1].lower() - imgTmp = os.path.join(self.tmp,"images") + imgTmp = os.path.join(self.tmp,imgDest) print "Copying images..." if extension == ".zip": self.ex("unzip","-q","-o","-j","-d",imgTmp,self.imgPath) |