Project/Project.py

branch
Py2 comp.
changeset 3496
b905cb8c520c
parent 3484
645c12de6b0c
child 3515
1b8381afe38f
--- a/Project/Project.py	Thu Apr 10 23:02:20 2014 +0200
+++ b/Project/Project.py	Thu Apr 10 23:03:29 2014 +0200
@@ -4331,7 +4331,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()
@@ -4397,7 +4398,7 @@
                 os.path.isfile("{0}.profile".format(basename)) or
                 os.path.isfile("{0}.profile".format(tbasename)))
             self.codeCoverageAct.setEnabled(
-                self.isPy3Project() and
+                (self.isPy3Project() or self.isPy2Project()) and
                 (os.path.isfile("{0}.coverage".format(basename)) or
                  os.path.isfile("{0}.coverage".format(tbasename))))
         else:

eric ide

mercurial