Project/ProjectResourcesBrowser.py

branch
5_2_x
changeset 1677
77437a6f8a03
parent 1509
c0b5e693b0eb
child 2192
61b3849df76d
child 2303
0ed4ed026c16
--- a/Project/ProjectResourcesBrowser.py	Sat Feb 25 19:29:59 2012 +0100
+++ b/Project/ProjectResourcesBrowser.py	Sun Feb 26 10:06:58 2012 +0100
@@ -709,6 +709,7 @@
         except IOError:
             return False
         
+        qrcDirName = os.path.dirname(filename)
         lbuf = ""
         for line in buf.splitlines():
             line = line.strip()
@@ -719,7 +720,7 @@
             if lbuf.lower().endswith("</file>"):
                 rfile = lbuf.split(">", 1)[1].split("<", 1)[0]
                 if not os.path.isabs(rfile):
-                    rfile = os.path.join(self.project.ppath, rfile)
+                    rfile = os.path.join(qrcDirName, rfile)
                 if os.path.exists(rfile) and \
                    os.stat(rfile).st_mtime > mtime:
                     return True

eric ide

mercurial