A little fix for the project. 5_4_x

Sun, 13 Apr 2014 16:21:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Apr 2014 16:21:30 +0200
branch
5_4_x
changeset 3504
0fb89cf25922
parent 3502
34b1435b4792
child 3511
164377e75d33

A little fix for the project.
(grafted from 2e98a3705f1503a418b766d5d806522770c37310)

Project/Project.py file | annotate | diff | comparison | revisions
--- a/Project/Project.py	Sat Apr 12 16:58:29 2014 +0200
+++ b/Project/Project.py	Sun Apr 13 16:21:30 2014 +0200
@@ -4313,7 +4313,8 @@
             return
         
         files = [os.path.join(self.ppath, file)
-                 for file in self.pdata["SOURCES"] if file.endswith(".py")]
+                 for file in self.pdata["SOURCES"]
+                 if os.path.splitext(file)[1].startswith(".py")]
         from DataViews.PyCoverageDialog import PyCoverageDialog
         self.codecoverage = PyCoverageDialog()
         self.codecoverage.show()

eric ide

mercurial