Revision: 1448
Author: sebastien.lelong
Date: Sun Nov 1 05:53:39 2009
Log: dirty fix for relative image path above current directory (../)
http://code.google.com/p/jallib/source/detail?r=1448
Modified:
/trunk/tools/japp/htmlizer.py
=======================================
--- /trunk/tools/japp/htmlizer.py Fri Oct 30 09:39:03 2009
+++ /trunk/tools/japp/htmlizer.py Sun Nov 1 05:53:39 2009
@@ -75,6 +75,8 @@
if img.parent.name == "a" and img.parent.get("href") == origsrc:
img.parent['href'] = img['src']
enclosingas.append(img.parent)
+ # fix relative path (quite dirty...)
+ origsrc = origsrc.replace(os.path.pardir + os.path.sep,"")
os.system("cp %s/%s %s/%s/%s/" %
(dirn,origsrc,dirn,OUTPUT_DIR,ATTACH_DIR))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---