Fixed an issue in the project resources viewer causing a resourcefile not being recompiled when a linked resource has changed.

Sun, 26 Feb 2012 10:06:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Feb 2012 10:06:58 +0100
changeset 1676
54f387117fee
parent 1674
7eb92d0bc124
child 1678
1d539ee4a574

Fixed an issue in the project resources viewer causing a resourcefile not being recompiled when a linked resource has changed.

Project/ProjectResourcesBrowser.py file | annotate | diff | comparison | revisions
diff -r 7eb92d0bc124 -r 54f387117fee Project/ProjectResourcesBrowser.py
--- a/Project/ProjectResourcesBrowser.py	Sat Feb 25 19:27:57 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