Fixed a bug in Project.getMainScript.

Thu, 26 Dec 2013 18:35:47 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 26 Dec 2013 18:35:47 +0100
changeset 3156
86a6528fea9f
parent 3155
7e10d00e27ca
child 3158
c91f976a2395

Fixed a bug in Project.getMainScript.

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
Project/Project.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Mon Dec 23 17:52:15 2013 +0100
+++ b/Debugger/DebugUI.py	Thu Dec 26 18:35:47 2013 +0100
@@ -1500,7 +1500,7 @@
             eraseCoverage = dlg.getCoverageData()
             
             if runProject:
-                fn = self.project.getMainScript(1)
+                fn = self.project.getMainScript(True)
                 if fn is None:
                     E5MessageBox.critical(
                         self.ui,
@@ -1618,7 +1618,7 @@
             eraseTimings = dlg.getProfilingData()
             
             if runProject:
-                fn = self.project.getMainScript(1)
+                fn = self.project.getMainScript(True)
                 if fn is None:
                     E5MessageBox.critical(
                         self.ui,
@@ -1738,7 +1738,7 @@
             forkAutomatically, forkIntoChild = dlg.getRunData()
             
             if runProject:
-                fn = self.project.getMainScript(1)
+                fn = self.project.getMainScript(True)
                 if fn is None:
                     E5MessageBox.critical(
                         self.ui,
--- a/Project/Project.py	Mon Dec 23 17:52:15 2013 +0100
+++ b/Project/Project.py	Thu Dec 26 18:35:47 2013 +0100
@@ -2910,7 +2910,7 @@
             if normalized:
                 return os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0])
             else:
-                return self.pdata["MAINSCRIPT"]
+                return self.pdata["MAINSCRIPT"][0]
         else:
             return None
         

eric ide

mercurial