Debugger/DebugUI.py

branch
6_0_x
changeset 4257
1d460912fbb7
parent 4192
a588068a0d80
child 4303
57b5de82ce05
diff -r ea05b52a278f -r 1d460912fbb7 Debugger/DebugUI.py
--- a/Debugger/DebugUI.py	Sat May 09 14:10:59 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