Debugger/DebugUI.py

changeset 4256
5c61205c4bd7
parent 4191
47341b626127
child 4303
57b5de82ce05
--- 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