Fixed an issue in the Debug UI.

Fri, 15 May 2015 18:38:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 May 2015 18:38:52 +0200
changeset 4256
5c61205c4bd7
parent 4255
79728c35c2c5
child 4258
d141e2bb94cc

Fixed an issue in the Debug UI.

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Sun May 10 11:59:37 2015 +0200
+++ b/Debugger/DebugUI.py	Fri May 15 18:38:52 2015 +0200
@@ -1079,10 +1079,11 @@
                 filename = os.path.join(self.project.getProjectPath(),
                                         filename)
             else:
-                d = os.path.dirname(
-                    self.project.getMainScript(normalized=True))
-                if os.path.exists(os.path.join(d, filename)):
-                    filename = os.path.join(d, filename)
+                ms = self.project.getMainScript(normalized=True)
+                if ms is not None:
+                    d = os.path.dirname(ms)
+                    if os.path.exists(os.path.join(d, filename)):
+                        filename = os.path.join(d, filename)
         self.viewmanager.setFileLine(filename, lineNo, True, True)
         E5MessageBox.critical(
             self.ui, Program,

eric ide

mercurial