Author: dmeyer
Date: Sun Oct 29 16:14:37 2006
New Revision: 1935

Modified:
   trunk/metadata/src/misc/dirinfo.py

Log:
add full path to images

Modified: trunk/metadata/src/misc/dirinfo.py
==============================================================================
--- trunk/metadata/src/misc/dirinfo.py  (original)
+++ trunk/metadata/src/misc/dirinfo.py  Sun Oct 29 16:14:37 2006
@@ -74,9 +74,9 @@
         f = open(info)
         for l in f.readlines():
             if l.startswith('Icon='):
-                self.image = l[5:]
-                if self.image.startswith('./'):
-                    self.image = self.image[2:]
+                self.image = l[5:].strip()
+                if not self.image.startswith('/'):
+                    self.image = os.path.join(directory, self.image[2:])
                 self.keys.append('image')
             if l.startswith('Name='):
                 self.title = l[5:].strip()

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to